Four views of a climate_source_compare() result:
"summary": per variable and product, Lin's concordance (CCC) with the reference, the Pearson correlation and the standardised offset (mean difference +/- its standard deviation, in SD of the reference across M), at the records and across M. Dashed lines mark the CCC grades of McBride (2005)."map": the geographic pattern of disagreement for one variable: the standardised difference (product minus reference) at the sampled cells of M, on a diverging scale, with the records outlined and the 5% of cells with the largest disagreement ringed."scatter": product against reference, with the 1:1 line."density": the distributions of the variable in each product, at the records and across M (their shared area is the overlapping index).
Usage
plot_climate_sources(
x,
type = c("summary", "map", "scatter", "density"),
variable = NULL,
source = NULL,
base_size = 11,
file = NULL,
width = NULL,
height = NULL
)Arguments
- x
A
climate_source_compareobject.- type
"summary","map","scatter"or"density".- variable
Variable for the map, scatter and density views (default: the one with the lowest agreement).
- source
Products shown in the map and scatter views (default: all but the reference).
- 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
Lin, L.I-K. (1989) A concordance correlation coefficient to evaluate reproducibility. Biometrics 45, 255-268. doi:10.2307/2532051
McBride, G.B. (2005) A proposal for strength-of-agreement criteria for Lin's concordance correlation coefficient. NIWA Client Report HAM2005-062.
Examples
sim <- simulate_enm_data(seed = 1, n_presence = 80)
b <- sim$env
b[[1]] <- b[[1]] + 0.01 * terra::init(b[[1]], "y")
cs <- climate_source_compare(list(A = sim$env, B = b), sim$presence,
n = 1500)
plot_climate_sources(cs)
plot_climate_sources(cs, "map")
plot_climate_sources(cs, "scatter")
plot_climate_sources(cs, "density")
