ggMap_sf: TODO: finish. Create a ggplot2 object with maps from a 'sf'...

View source: R/ggMap_sf.R

ggMap_sfR Documentation

TODO: finish. Create a ggplot2 object with maps from a sf dataframe

Description

Function to create a ggplot2 object of maps from a sf dataframe.

Usage

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
)

Arguments

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

Details

Creates ggplot2-style maps of the starting and ending locations of individuals. End zone locations can be colored according to their start zone.

Value

a ggplot2 object


wStockhausen/rDisMELS documentation built on March 27, 2022, 1 a.m.