plot_density_staff: Plot densities of rangers or all personnel

View source: R/figures.R

plot_density_staffR Documentation

Plot densities of rangers or all personnel

Description

Plot densities of rangers or all personnel

Usage

plot_density_staff(
  what,
  who,
  data,
  ymax = 6000,
  breaks = c(10^(0:3), 2 * 10^(0:3), 5 * 10^(0:3)),
  tag = "",
  basesize = 7
)

Arguments

what

an object produced by run_LMM_workflow() or run_RF_workflow()

who

the type of staff ("rangers", "others" or "all")

data

a dataset with info on continents if breakdown by continent is required (optional)

ymax

the maximal value for the y-axis

breaks

a vector of number defining the horizontal lines in the plot (i.e. breaks in ggplot jargon)

tag

a tag to be used for building a panel (e.g "A.")

basesize

the value for the argument base_size used in ggplot2::theme()

Examples

# see ?rangeRinPA


courtiol/rangeRinPA documentation built on Sept. 29, 2022, 9:54 a.m.