% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sequence-panel.R
\name{plot_sequence_panel_changes}
\alias{plot_sequence_panel_changes}
\title{Plot longitudinal sequence changes}
\usage{
plot_sequence_panel_changes(
  changes,
  metric = c("distance", "length_change", "transition_change"),
  type = c("individual", "summary"),
  ...
)
}
\arguments{
\item{changes}{A result from \code{\link[=compare_sequence_panel_changes]{compare_sequence_panel_changes()}}.}

\item{metric}{One of \code{"distance"}, \code{"length_change"}, or
\code{"transition_change"}.}

\item{type}{Plot individual panel trajectories or occasion-transition means.}

\item{...}{Additional graphical arguments passed to base plotting functions.}
}
\value{
The plotted data, invisibly.
}
\description{
Plot longitudinal sequence changes
}
\examples{
panel_data <- data.frame(
  participant_id = rep(c("p1", "p2"), each = 6L),
  occasion = rep(rep(c(1, 2), each = 3L), times = 2L),
  sequence_id = rep(c("a", "b", "c", "d"), each = 3L),
  sequence_order = rep(1:3, times = 4L),
  state = c("A", "B", "C", "A", "C", "C", "C", "B", "A", "C", "B", "B")
)
changes <- compare_sequence_panel_changes(
  prepare_sequence_panel(panel_data, "participant_id", "occasion")
)
plot_sequence_panel_changes(changes)
}
