View source: R/function_plot_ada.R
plot_ada | R Documentation |
Plotting ancestral area character in space
plot_ada(
ada.res,
grid,
coords,
resolution,
patterns = "all",
color_palette = "SunsetDark",
projection = "+proj=robin"
)
ada.res |
An object from ada function |
grid |
An spatial object containing the cells used to calculate ancestral diversity distribution with ada |
coords |
A two column matrix containing the values of Longitude (first column) and Latitude (second column) |
resolution |
Scalar informing the resolution of grids in grid object |
patterns |
Character, a vector containing the names of the metrics to be spatialized or "all" to create a map for all metrics. The characters allowed to be passed are "rich", "Nnodes", "PeakDiv", "Skewness", "LowDistPeak", "HighDistPeak", "PeakRange". Default is "all" |
color_palette |
Character indicating the palette to be used to plot spatial patterns. it can be one of the option present in scale_fill_carto_c function. Default is "SunsetDark" |
projection |
Character indicating the projection to be used in spatial plots. Default is "+proj=robin" |
A list containing spatial plots for the metrics calculated in ada.res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.