Skip to contents

For a thresholds() result: the predicted-suitable share under each rule (one panel per model), labelled with the threshold, so the spread of the mapped range between rules is visible at a glance. For a threshold_agreement() result: the map of the number of rules that call each cell suitable.

Usage

plot_thresholds(x, base_size = 11, file = NULL, width = 2100, height = 1500)

Arguments

x

A result of thresholds() or threshold_agreement().

base_size

Base font size.

file

Optional file(s) to save the plot to, e.g. "fig.pdf" or c("fig.png", "fig.pdf"); the format follows the extension, and a name without extension is saved as PNG and PDF. The plot is also returned.

width, height

Size of the saved figure in pixels (PDF and SVG at 300 pixels per inch).

Value

A ggplot object.

Examples

set.seed(1)
th <- thresholds(rbeta(200, 5, 2), rbeta(2000, 2, 4))
plot_thresholds(th)