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"), ...)
A data.frame giving codes and indices of the colors shown in the plot
An object of type distrib_data
, nodiv_data
or nodiv_result
, or, alternatively, an object of spatial points from package sp
, or a matrix of xy values in two columns
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.
The oter site statistic to be plotted.
The resolution of colors on the color legend
A boolean specifying whether to show the legend
A vector x1, x2, y1, y2 specifying the location and extent of the color legend
To specify whether to plot as spatial points or a grid
What colour scheme to use for plotting
Further arguements to the plotting function
Michael Krabbe Borregaard
distrib_data
plot_points