tmap_CreateLayers_Locations: Create 'tmap'-style layers from a list of dataframes with...

View source: R/tmap_CreateLayers_Locations.R

tmap_CreateLayers_LocationsR Documentation

Create tmap-style layers from a list of dataframes with point locations

Description

Function to create tmap-style layers from a list of dataframes with point locations.

Usage

tmap_CreateLayers_Locations(
  dfrs_points,
  markers = c("dots", "symbols"),
  shape = 1,
  size = 0.2,
  alpha = 0.6,
  basemap = NULL,
  colors.background = "grey85",
  colors.land = "grey45",
  colors.bathym = "grey65",
  aes.palette = list(cat = c("blue", "red"), div = c("blue", "red"), seq = c("blue",
    "red")),
  printMaps = FALSE
)

Arguments

dfrs_points

- list of dataframes by typeName with point locations

markers

- marker type (e.g., "dots", "symmbols")

shape

- integer id for shape type

size

-marker size

alpha

-marker transparency

basemap

- tmap-style basemap on which to plot locations (if printMaps is TRUE)

colors.background

- basemap background color passed to createBasemap

colors.land

-basemap land color passed to createBasemap

colors.bathym

- basemap color for bathymetric contours, passed to createBasemap

aes.palette

- basemap list for aes.palette passed to createBasemap

printMaps

- flag to print maps (basemap + each layer)

Details

Requires package tmap. If basemap is NULL and printMaps is TRUE, a basemap is created using a call to tmap_CreateBasemap with the supplied parameters, which will create a basemap for the CGOA in lat/lon.

Value

list of map layers corresponding to different life stage types


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