ggMap_IndivLocations: Create a ggplot2 object with individual locations from a 'sf'...

View source: R/plotMap_IndivLocations.R View source: R/ggMap_IndivLocations.R

ggMap_IndivLocationsR Documentation

Create a ggplot2 object with individual locations from a sf dataframe

Description

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.

Usage

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
)

Arguments

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

Details

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.

Value

a ggplot2 object

a ggplot2 object


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