View source: R/plot.climateSpace.R
plot_climateSpace | R Documentation |
Plot the studied climate space.
plot_climateSpace(
x,
climate = x$parameters$climate,
bin_width = x$parameters$bin_width[x$parameters$climate, ],
save = FALSE,
filename = "Climate_space.pdf",
as.png = FALSE,
png.res = 300,
width = 7.48,
height = min(9, 3.5 * length(climate)),
y0 = 0.4,
add_modern = FALSE,
resol = getResol(x)
)
x |
A |
climate |
Climate variables to be used to generate the plot. By default all the variables are included. |
bin_width |
The width of the bins used to correct for unbalanced climate state. Use values that split the studied climate gradient in 15-25 classes (e.g. 2°C for temperature variables). Default is 1. |
save |
A boolean to indicate if the diagram should be saved as a pdf file.
Default is |
filename |
An absolute or relative path that indicates where the diagram
should be saved. Also used to specify the name of the file. Default:
the file is saved in the working directory under the name
|
as.png |
A boolean to indicate if the output should be saved as a png.
Default is |
png.res |
The resolution of the png file (default 300 pixels per inch). |
width |
The width of the output file in inches (default 7.48in ~ 19cm). |
height |
The height of the output file in inches (default 3in ~ 7.6cm per variables). |
y0 |
The space to allocate to each title (default 0.4in ~ 1 cm. |
add_modern |
A boolean to add the location and the modern climate values
to the plot (default |
resol |
For advanced users only: if higher resolution data are used to
estimate the |
No return value, this function is used to plot.
## Not run:
data(crest_ex_pse)
data(crest_ex_selection)
reconstr <- crest.get_modern_data(
pse = crest_ex_pse, taxaType = 0,
climate = c("bio1", "bio12"),
selectedTaxa = crest_ex_selection, dbname = "crest_example"
)
reconstr <- crest.calibrate(reconstr,
geoWeighting = TRUE, climateSpaceWeighting = TRUE,
bin_width = c(2, 20), shape = c("normal", "lognormal")
)
plot_climateSpace(reconstr)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.