Plot method for the sliding values returned by seqdiff
. Plots a statistic (the Pseudo R2 by default) along the position axis.
# S3 method for seqdiff
plot(x, stat = "Pseudo R2", type = "l", ylab = stat,
xlab = "", legend.pos = "top", ylim = NULL, xaxis = TRUE, col = NULL,
xtstep = NULL, tick.last = NULL, legendposition, xaxt, ...)
an object produced by seqdiff
character. Name of the statistic to be plotted. Can be any of the statistics returned by seqdiff
or "discrepancy"
. See details.
the line type
, see lines
character: y-axis label.
character: x-axis label.
character: position of the line legend, see legend
numeric: if not NULL
, range of the y-axis.
logical: if TRUE
an x-axis is plotted.
list of colors to use for each line.
integer: optional step between tick-marks and labels on the x-axis. If unspecified, the xtstep
attribute of the sequence object x
is used. (see seqdef
)
Logical. Should a tick mark be enforced at the last position on the x-axis? If unspecified, the tick.last
attribute of the x
object is used.
Deprecated. Use legend.pos
instead.
Deprecated. Use xaxis
instead.
Additional parameters passed to lines
Matthias Studer (with Gilbert Ritschard for the help page)
The function plots the sliding values of the requested statistic.
You can plot the evolution of two statistics by providing for instance stat=c("Pseudo R2", "Levene")
.
Use stat="discrepancy"
to plot the within-discrepancies.
For "discrepancy"
, a separate line is drawn for the whole set of sequences and for each group. Those two values cannot be paired with another statistic.
seqdiff