Plot Estimated VaSSTra States
Arguments
- x
A
vasstra_statesobject.- colors
Optional colors, one per state. Used by profile, bar, and size plots; heatmaps use a value-based sequential or diverging palette.
- main
Optional plot title. A type-specific title is used by default.
- ...
Additional graphical arguments passed to
graphics::matplot(),graphics::image(), orgraphics::barplot().- type
One of
"profile"(default),"heatmap","bars","sizes", or"all"for a two-by-two overview of the four types.- scale
Show state profiles on the
"standardized"(default) or"original"indicator scale. Ignored bytype = "sizes".
Value
For profile, bar, heatmap, and overview plots, the plotted indicator-by-state matrix, invisibly. For a size plot, a tidy state-size data frame.
Examples
data("engagement", package = "VaSSTra")
states <- step1_states(engagement, n_states = 3)
plot(states)
plot(states, type = "sizes")
plot(states, type = "all")
