Skip to contents

Plot diagnostics of posterior distribution(s)

Usage

# S3 method for class 'demografr_abc.abc'
plot(x, param = NULL, ...)

Arguments

x

ABC object generated by run_abc

param

A character vector containing either parameter names to summarize, or a regex-like matches to be used for subsetting. If NULL (the default), all parameters will be extracted.

...

Formal ellipsis argument of the plot method (unused)

Value

Used exclusively for printing

Examples

# read inferred posterior distribution object from an example ABC run
abc_res <- readRDS(system.file("examples/basics_abc.rds", package = "demografr"))

# plot diagnostics for all parameters (in sequence)
# plot(abc_res)

# plot diagnostics only for selected parameters
plot(abc_res, param = "^Ne_")




# plot(abc_res, param = "gf_BC")