View source: R/two_color_map.R
two_color_map | R Documentation |
Plots site statistics from objects in the nodiv
package
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"), ...)
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 |
A data.frame giving codes and indices of the colors shown in the plot
Michael Krabbe Borregaard
distrib_data
plot_points
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.