plot.erri: Plot an ERRI Trajectory or Index Comparison

View source: R/plot.R

plot.erriR Documentation

Plot an ERRI Trajectory or Index Comparison

Description

Plots the observed and counterfactual paths with a prediction interval, compares composite indices, or compares component scores.

Usage

## S3 method for class 'erri'
plot(x, type = c("trajectory", "index", "components"),
  unit = NULL, ...)

Arguments

x

An object returned by erri().

type

Trajectory, index, or component-score plot.

unit

Unit to display for a trajectory; defaults to the first unit.

...

Additional arguments passed to the base plotting function.

Value

The object invisibly.

Examples

fit <- erri(erri_example_data(), "year", "income", 2020, "region")
plot(fit, type = "index")

ERRI documentation built on Sept. 28, 2026, 5:08 p.m.