Outcome | Shortcut | Options |
---|---|---|
Zoom to panel and maximize | Shift +Ctrl +[1-9] |
1 = Source, 2 = Console, 3 = Help, etc. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(placement) | |
library(rvest) | |
library(janitor) | |
library(sf) | |
library(tidyverse) | |
nc <- read_sf(system.file("shape/nc.shp", package="sf")) | |
glimpse(nc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(sf) | |
library(osmdata) | |
library(tidyverse) | |
library(miscgis) | |
library(mapview) | |
# BBOX RESOURCE: http://tools.geofabrik.de/calc/#type=geofabrik_standard&bbox=-122.33,47.595759,-122.311374,47.601725&tab=1&proj=EPSG:4326&places=4 | |
cid_bbox <- c(-122.33, 47.5957, -122.3113, 47.6018) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup ---- | |
library(rbenchmark) | |
library(tidyverse) | |
library(sf) | |
library(esri2sf) | |
cols <- c( "elapsed", "relative", "user.self", "sys.self") | |
geojson_url <- "https://opendata.arcgis.com/datasets/3fdb7c41de8548c5ab5f96cb1ef303e2_446.geojson" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
options( | |
reprex.advertise = FALSE, | |
reprex.si = TRUE, | |
reprex.style = TRUE, | |
reprex.comment = "##", | |
reprex.tidyverse_quiet = TRUE | |
) | |
reprex({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SETUP ---- | |
library(tidyverse) | |
library(treemapify) | |
library(RSocrata) | |
library(snakecase) | |
library(forcats) | |
library(waffle) | |
library(rcartocolor) | |
# DATA ---- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "R Notebook" | |
output: | |
pdf_document: default | |
html_notebook: default | |
--- | |
###Default Arrangement | |
```{r, echo=FALSE,message=FALSE} | |
# devtools::install_github("wch/webshot") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(leaflet) | |
library(RColorBrewer) | |
quakeMapUI <- function(id){ | |
ns <- NS(id) | |
tagList( | |
bootstrapPage( | |
tags$style(type = "text/css", "html, body {width:100%;height:100%}"), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(grDevices) # boxplot.stats() | |
library(operator.tools) # %!in% logical operator | |
library(tmap) # 'metro' data set | |
library(magrittr) # piping | |
library(dplyr) # exploratory data analysis verbs | |
library(purrr) # recursive mapping of functions | |
library(tibble) # improved version of a data.frame | |
library(ggplot2) # dot plot | |
library(ggrepel) # avoid label overlap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(shinydashboard) | |
library(leaflet) | |
header <- dashboardHeader( | |
title = "Example", | |
titleWidth = "600px" | |
) | |
sidebar <- dashboardSidebar(width = "600px") |
NewerOlder