Renders the OTIS exploratory figure set in base R from a b01-schema data frame: consecutive-days survival tail (log-log CCDF, the Goffman power-law view), alert-share trends by fiscal year, alert co-occurrence (Cramer's V per alert pair, the mortification view), placements by age band and year, and a Pareto chart of placements by region. Runs offline on the bundled sample by default.
Usage
morie_otis_figures(
out_dir,
df = morie_sample("otis_b01"),
which = c("powerlaw", "alert_trend", "mortification", "age_year", "pareto_region")
)Arguments
- out_dir
Directory to write PNG files into (created if missing). Required; nothing is written anywhere else.
- df
A b01-schema data.frame. Default loads the shipped sample via
morie_sample()(data.ontario.ca, OGL-Ontario).- which
Figure families: any of
"powerlaw","alert_trend","mortification","age_year","pareto_region".
