Plot scores from neighborhood based contingency tables based on Stein and Stoop article, 2019 Jan Neighborhood-Based Contingency Tables Including Errors Compensation
Source:R/plot_spatial_nact.R
plot_spatial_nact.Rd
Plot scores from neighborhood based contingency tables based on Stein and Stoop article, 2019 Jan Neighborhood-Based Contingency Tables Including Errors Compensation
Usage
plot_spatial_nact(
plot_data,
score_name = "NACT",
point_size = 1.2,
extend_y_to_zero = TRUE,
line_width = 1,
y_label = "auto",
x_label = "auto",
flip_axes = FALSE,
nact_scores = list("all"),
colour_by = "scale",
num_facet_cols = NULL,
...
)
Arguments
- plot_data
A tibble from
plot_spatial_verif
that contains necessary scores.- score_name
In this context, table name. Technically not really necessary but makes it more intuitive when calling from
plot_spatial_verif
.- point_size
The size of points to plot.
- extend_y_to_zero
Logical. Whether to extend the y-axis to include zero.
- line_width
The width of lines to plot. The default is 1.
- y_label
Label for the y-axis. Set to "auto" to use "Score". Anything else inside quotes will be used as the y-axis label.
- x_label
Label for the x-axis. Set to "auto" to use threshold or scale depending on the data. Anything else inside quotes will be used as the x-axis label.
- flip_axes
Logical of whether to swap the x and y axes.
- nact_scores
Actual scores to plot. Available scores based on NACT are "fbias", "pod", "far", "pss", "hss", "sedi".
- colour_by
The column to colour the plot lines by. Can be an option between scale or threshold.
- num_facet_cols
Number of columns in the faceted plot.