ggMap_sf | R Documentation |
Function to create a ggplot2 object of maps from a sf dataframe.
ggMap_sf( sf_dfr, geomsCol = "geometry", colorCol = NULL, colorScale = c("discrete", "continuous"), colours = c("red", "blue", "green", "cyan", "black"), fillCol = NULL, fillScale = c("discrete", "continuous"), fills = c("red", "blue", "green", "cyan", "black"), shapeCol = NULL, shapes = c(20, 21, 22), alpha = 0.5, facet_grid = NULL, facet_grid_scales = "fixed", facet_wrap = NULL, bmls = NULL, crs = wtsGIS::get_crs(4326), nSZpG = 2, nPlotCols = 2 )
sf_dfr |
- sf dataframe with geometries to plot |
colours |
- vector of colours to use to distinguish start zones in an end location map |
bmls |
- list of ggplot2 basemap layers |
crs |
- sf coordinate reference system (crs) for maps |
nSZpG |
- number of start zones to include in a group for end location maps |
nPlotCols |
- number of columns for end location maps |
startZones |
- vector of starting zone id's (integers) for sf_zones |
endZones |
- vector of ending zone id's (integers) for sf_zones |
plotStartLocs |
- flag to plot start locations |
plotEndLocs |
- flag to plot end locations |
Creates ggplot2-style maps of the starting and ending locations of individuals. End zone locations can be colored according to their start zone.
a ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.