makePlot: Make a seasonal plot, save to a specific path.

View source: R/makeSeasonPlot.R

makePlotR Documentation

Make a seasonal plot, save to a specific path.

Description

Make a seasonal plot, save to a specific path.

Usage

makePlot(
  surface,
  species,
  season,
  maxCol = NULL,
  coordArgs = NULL,
  pngSaveFileName = NULL,
  ...
)

Arguments

surface

array data presented in a 3-column dataframe

species

species name (character) to include in title and file path

season

season name (character) to specify plot color and file path. Defaults to muted red for "Summer" and muted blue for other seasons.

maxCol

color (character) to overwrite season argument, sets maximum color.

coordArgs

optional coordinate arguments to populate coord_sf.

pngSaveFileName

optional (character) file name to which to save plot.

...

Aesthetic arguments to populate ggplot2::geom_tile(). Suggested use might include "x=x,y=y,fill=value" or similar, depending on the column names of the 'surface' parameter.

Value

a ggplot object

See Also

surface2df


cjcampbell/SDMetrics documentation built on Oct. 2, 2022, 10:14 a.m.