
Plot the principal component analysis behind a PCAm ensemble
Source:R/ensemble.R
plot_ensemble_pca.RdThe loading of each model on the consensus axis (the first principal component of the standardised predictions), with the models whose median forms the ensemble marked, and the share of variance of the axis.
Arguments
- x
An
enm_ensembleobject made withmethod = "pcam".- base_size
Base font size.
- file
Optional file(s) to save the plot to, e.g.
"fig.pdf"orc("fig.png", "fig.pdf"); the format follows the extension, and a name without extension is saved as PNG and PDF.- width, height
Size of the saved figure in pixels (PDF and SVG at 300 pixels per inch).
References
Thuiller, W. (2004) Patterns and uncertainties of species' range shifts under climate change. Global Change Biology 10, 2020-2027. doi:10.1111/j.1365-2486.2004.00859.x
Examples
sim <- simulate_enm_data(seed = 1)
ens <- ensemble_models(sim$models)
plot_ensemble_pca(ens)