Skip to contents

The years of the focal and the target records (type = "years") or the shares of each kind of record (type = "basis").

Usage

plot_target_group(
  x,
  type = c("years", "basis"),
  base_size = 11,
  file = NULL,
  width = 2100,
  height = 1200
)

Arguments

x

A target_group_check object.

type

"years" or "basis".

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.

width, height

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

Value

A ggplot object.

References

Phillips, S.J., Dudik, M., Elith, J., Graham, C.H., Lehmann, A., Leathwick, J., Ferrier, S. (2009) Sample selection bias and presence-only distribution models: implications for background and pseudo-absence data. Ecological Applications 19, 181-197. doi:10.1890/07-2153.1

Examples

# see ?target_group_check