two_color_map {nodiv} | R Documentation |
Plot the relative amounts of two variables using a purple-green color scheme
Description
Plots site statistics from objects in the nodiv
package
Usage
two_color_map(distrib_data, vec1, vec2, res = 10, showlegend = T,
legend_coords = c(0.2, 0.26, 0.36, 0.44), type = c("auto", "grid", "points"),
colour = c("green_purple", "green_red_purple_cyan"), ...)
Arguments
distrib_data |
An object of type |
vec1 |
A site statistic to be plotted, such as species richness or mean temperature. This can be a vector of values or the name of a site statistic in distrib_data. |
vec2 |
The oter site statistic to be plotted. |
res |
The resolution of colors on the color legend |
showlegend |
A boolean specifying whether to show the legend |
legend_coords |
A vector x1, x2, y1, y2 specifying the location and extent of the color legend |
type |
To specify whether to plot as spatial points or a grid |
colour |
What colour scheme to use for plotting |
... |
Further arguements to the plotting function |
Value
A data.frame giving codes and indices of the colors shown in the plot
Author(s)
Michael Krabbe Borregaard