climPlot | R Documentation |
Function to create a binned scatter plot of two climate variables.
climPlot(xy, x.binSize, y.binSize, x.name="V1", y.name="V2")
xy |
|
x.binSize |
|
y.binSize |
|
x.name |
|
y.name |
|
A series of plot
objects displaying the (i) present and (ii) future
cell frequency for each combination of local climates,
and (iii) the location of remnant, novel and disappearing climates between both periods.
Jorge Garcia Molinos and Naoki H. Kumagai
dVoCC
, climPCA
# Plot climate space for the two first variables(annual precipitation and maximum temperature)
xy <- na.omit(data.frame(getValues(JapTC[[1]]), getValues(JapTC[[2]]),
getValues(JapTC[[3]]), getValues(JapTC[[4]])))
out <- climPlot(xy, x.binSize = 5, y.binSize = 0.2, x.name="Precipitation (mm)",
y.name="Temperature max (°C)")
# output plots can be saved as:
ggplot2::ggsave(plot=out, filename=paste0(getwd(), "/example_plot.pdf"), width=17, height=17, unit="cm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.