Skip to content

Instantly share code, notes, and snippets.

@aspina7
aspina7 / base_map_example
Last active January 21, 2020 22:17
Base-map plotting offline with {ggspatial}. Current issue is that it will only download tiles if you plot something on top, which makes it not as useful as a standalone. And the res in general. Would also be nice to be able to chuck in coords or a bbox.
## Installing required packages for this template
required_packages <- c("here", # find your files
"dplyr", # clean/shape data
"ggplot2", # create plots and charts
"sf", # encode spatial vector data
"raster", # get and plot GADM shapefiles
"ggspatial") # get and plot base maps