Learn R Programming

nodiv (version 1.4.2)

plot_richness: 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, ...)

Value

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

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

Author

Michael Krabbe Borregaard

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.