plot.seqdiff | R Documentation |
Plot method for the sliding values returned by seqdiff
. Plots a statistic (the Pseudo R2 by default) along the position axis.
## S3 method for class '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, ...)
x |
an object produced by |
stat |
character. Name of the statistic to be plotted. Can be any of the statistics returned by |
type |
the line |
ylab |
character: y-axis label. |
xlab |
character: x-axis label. |
legend.pos |
character: position of the line legend, see |
ylim |
numeric: if not |
xaxis |
logical: if |
col |
list of colors to use for each line. |
xtstep |
integer: optional step between tick-marks and labels on the x-axis. If unspecified, the |
tick.last |
Logical. Should a tick mark be enforced at the last position on the x-axis? If unspecified, the |
legendposition |
Deprecated. Use |
xaxt |
Deprecated. Use |
... |
Additional parameters passed to |
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.
Matthias Studer (with Gilbert Ritschard for the help page)
seqdiff
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.