makeCompoundPlot: Make overall summary plot from two rasterlayer surfaces.

View source: R/makeCompoundPlot.R

makeCompoundPlotR Documentation

Make overall summary plot from two rasterlayer surfaces.

Description

Make overall summary plot from two rasterlayer surfaces.

Usage

makeCompoundPlot(
  rast1,
  rast2,
  rastnames = c("Summer", "Winter"),
  myEllipses,
  species,
  summaryTable = NULL,
  pngSaveFileName = FALSE,
  ...
)

Arguments

rast1

First input rasterLayer

rast2

Second input rasterLayer

rastnames

Character vector of layerNames to be compared (defaults to "Summer" and "Winter" for rast1 and rast2 respectively)

myEllipses

List output of 'makeDataEllipse' function. If not provided, calculations to fit dataEllipse will be rerun. Arguments for makeDataEllipse function should then be provided.

species

Character vector of species, name of subdirectory where results are (optionally) saved.

summaryTable

Optional table of values to include under the plot. See output of 'extractStatistics'

pngSaveFileName

Optional file name to save plot object to.

...

DataFrame column nams to populated "geom_tile(aes())", e.g., : x=x,y=y,fill=value

Value

A list containing species name, rastname, metrics of surface equivalency, ellipse areas, ratio of ellipse areas, percent of ellipse intersected, centroid latitude and longitude for each ellipse, and distance and bearing between each centroid.

See Also

makeDataEllipse

surfaceEquivalency

extractStatistics


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