| plot.seqrf {TraMineR} | R Documentation |
Plot method for seqrf objects of relative frequency groups of sequences.
Description
Plots the medoids of the RF groups of sequences and/or the boxplots of the distribution of the distances from the sequences to their group medoid.
Usage
## S3 method for class 'seqrf'
plot(x,
space=0,
border=NA,
which.plot="medoids",
ylab=NA,
main=NULL,
frame.plot=FALSE,
info="all",
skipar=FALSE,
...)
Arguments
x |
a |
space |
space between horizontal bars representing medoid sequences (see |
border |
the color to be used for the border of the bars. Use border = NA to omit borders. (see |
which.plot |
string. One of |
ylab |
string. An optional label for the y-axis. If set as |
main |
main graphic title. Default is |
frame.plot |
logical. Should a frame be plotted around the grouped boxplots? |
info |
string. One of |
skipar |
logical. Should |
... |
further arguments passed to |
Details
The plot of the medoids is generated with the plot method for stslist objects and the boxplots with a slightly adapted version of the boxplot function for weighted data (wtd.boxplot) of the ENmisc package by Erich Neuwirth.
When which.plot="both", layout is used to produce the combined plot. Therefore, the resulting combined plot cannot be nested into other combinations using either par(mfrow=...) or layout. To combine with other plots, you must produce separately the plot of the medoids and the grouped boxplots using successively which.plot="medoids" and which.plot="diss.to.med".
When arguments xaxis and yaxis are on the ... list to be passed to plot.stslist, they are also used to control the display of the x and y axis of the boxplot.
With info="stat" or "all", the pseudo R2 and F statistics are displayed under the plot, but only when which.plot = "both".
Author(s)
Gilbert Ritschard.