View source: R/plotMap_IndivLocations.R View source: R/ggMap_IndivLocations.R
| ggMap_IndivLocations | R Documentation |
Function to create a ggplot2 object with individual locations from a sf dataframe.
Function to create a ggplot2 object with individual locations from a sf dataframe.
ggMap_IndivLocations(
sf_dfr,
geomCol = "geometry",
colorBy = "successful",
colorLabel = colorBy,
startZones = c(1:8),
subtitle = "",
group = FALSE,
bmls = NULL,
nSZpG = 1,
nPlotCols = 2,
colours = c("red", "blue", "green", "cyan", "black"),
verbose = FALSE
)
ggMap_IndivLocations(
sf_dfr,
geomCol = "geometry",
colorBy = "successful",
colorLabel = colorBy,
startZones = c(1:8),
subtitle = "",
group = FALSE,
bmls = NULL,
nSZpG = 1,
nPlotCols = 2,
colours = c("red", "blue", "green", "cyan", "black"),
verbose = FALSE
)
sf_dfr |
- sf dataframe with geometries to plot |
colorBy |
- name of column to use as levels to color tracks by |
colorLabel |
- label for colours legend |
startZones |
- vector of starting zone id's (integers) for sf_zones |
subtitle |
- plot subtitle |
group |
- flag to group startZones |
bmls |
- list of ggplot2 basemap layers |
nSZpG |
- number of start zones to include in a group for end location maps |
nPlotCols |
- number of columns for end location maps |
colours |
- vector of colours to use to distinguish start zones in an end location map |
verbose |
- flag (T/F) to print processing info |
Creates ggplot2-style maps of the starting and ending locations of individuals. End zone locations can be colored according to their start zone.
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
a ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.