Skip to contents

Visualizes differences between scenarios. Color encodes the decomposition component, linetype encodes the scenario.

Usage

# S3 method for class 'ineqx_compare'
plot(x, type = NULL, style = "line", stats = NULL, ...)

Arguments

x

An ineqx_compare object from compare.

type

Character: plot type. Defaults depend on class:

  • ineqx_causal_longit: "decomp", "wibe"

  • ineqx_causal_cross: "wibe"

  • ineqx_desc: "wibe", "decomp"

style

Character: "line" or "point" (longitudinal only).

stats

Character vector of decomposition components to display (for type = "decomp" with longitudinal data). See plot.ineqx_causal_longit for valid values. Default: c("behavioral", "compositional", "pretreatment", "total").

...

Additional arguments (currently unused).

Value

A ggplot2 object