Skip to contents

Plot estimated stage counts

Usage

# S3 method for class 'SuStaIn_model'
stage_barplot(object, ...)

Arguments

object

a SuStaIn_model object

...

Arguments passed on to stage_barplot.default

include_type_0

logical whether to include Type 0 in the plot

Value

a ggplot2::ggplot

Examples

output_path <-
  fs::path_package("extdata/sim_data", package = "fxtas")

results <-
  extract_results_from_pickle(
    output_folder = output_path,
    use_rds = TRUE,
    n_s = 3
  )

results |>
  stage_barplot()