Skip to contents

Convenience wrapper that calls morie_tps_sdb_reaction_diffusion, morie_tps_levy_flight_alpha, morie_tps_urban_scaling_beta, and morie_tps_lotka_volterra_police_crime on every category in the supplied list. Returns a nested list keyed first by category and then by method.

Usage

morie_tps_statphysics_analyze_all(
  categories = NULL,
  save_fig = TRUE,
  fig_dir = NULL
)

Arguments

categories

Character vector of TPS category names; default is the canonical nine-category TPS set.

save_fig

Whether to ask each sub-routine to write its

fig_dir

Directory to write the PNG into; NULL (the default) skips writing and says so in the result. figure.

Value

A named list of lists of morie_rich_result objects.

References

D'Orsogna MR, Perc M (2015). Physics of Life Reviews 12: 1-21.

Examples

# \donttest{
  res <- morie_tps_statphysics_analyze_all(c("Assault", "Robbery"),
                                             save_fig = FALSE)
#> morie_tps: no local TPS cache for 'Assault'; using the bundled sample from rmoriedata. Fetch the full export with morie_tps_fetch_category().
#> morie_tps: no local TPS cache for 'Assault'; using the bundled sample from rmoriedata. Fetch the full export with morie_tps_fetch_category().
#> morie_tps: no local TPS cache for 'Assault'; using the bundled sample from rmoriedata. Fetch the full export with morie_tps_fetch_category().
#> morie_tps: no local TPS cache for 'Robbery'; using the bundled sample from rmorie. Fetch the full export with morie_tps_fetch_category().
#> morie_tps: no local TPS cache for 'Robbery'; using the bundled sample from rmorie. Fetch the full export with morie_tps_fetch_category().
#> morie_tps: no local TPS cache for 'Robbery'; using the bundled sample from rmorie. Fetch the full export with morie_tps_fetch_category().
# }