plot_richness: Plot a richness map for an object of type distrib_data,...

View source: R/General_figure_functions.R

plot_richnessR Documentation

Plot a richness map for an object of type distrib_data, nodiv_data or nodiv_result

Description

Create a raster or point plot showing the species richness of an object. Useful for comparing the species richness of sister clades

Usage

plot_richness(distrib_data, ...)
plot_node(nodiv_data, node = basal_node(nodiv_data), sites = NULL, ...)

Arguments

distrib_data

An object of types distrib_data, nodiv_data or nodiv_result

nodiv_data

An object of types nodiv_data or nodiv_result

node

The name or internal number of the node to be plotted

sites

If sites = "all" the plotting region retains all sites (including sites unoccupied by that node)

...

Further arguments to pass to the plotting function

Details

The plot will be done as a spatial grid or as colored points, depending on the type of the nodiv_result object. plot_richness plots the richness of the entire dataset, whereas plot_node plots the species richness of a given node.

Value

If distrib_data has type = raster, a raster object of the SOS values is returned.

Author(s)

Michael Krabbe Borregaard


nodiv documentation built on Aug. 21, 2023, 9:10 a.m.