Usage
## S3 method for class 'stslist':
plot(x, tlim=NULL, weighted=TRUE, sortv=NULL,
cpal=NULL, missing.color=NULL,
ylab, yaxis = TRUE, xaxis = TRUE, ytlab = NULL, ylas=0,
xtlab = NULL, xtstep = NULL, cex.plot=1, ...)
Arguments
x
A state sequence object created with the seqdef
function. tlim
Indexes of the sequences to be plotted (default value is 1:10
), for instance 20:50
to plot sequences 20 to 50, c(2,8,12,25)
to plot sequences 2,8,12 and 25 in seqdata
. If set to 0
, all seque
weighted
Logical: Should the bar representing each sequence be proportional to its weight? Ignored when no weights are assigned to sequences (see seqdef
.) sortv
A sorting variable or a sort method (one of "from.start"
or "from.end"
). See details.
cpal
alternative color palette to use for the states. If user specified, a vector of colors with number of elements equal to the number of states in the alphabet. By default, the cpal
attribute of the seqdata
sequence object is used (
missing.color
alternative color for representing missing values inside the sequences. By default, this color is taken from the "missing.color" attribute of the x
sequence object.
ylab
An optional label for the y axis. If set to NA
, no label is drawn.
yaxis
Controls whether the y axis is plotted or not. When set to TRUE
, sequence indexes are displayed.
xaxis
if TRUE
(default), the x (time) axis is plotted.
ytlab
the labels of the plotted sequences to display on the y axis. Default is the indexes of the sequences as defined by the tlim
argument. Can be set to "id"
for displaying the row names (id) of the sequences instead of their indexes
ylas
sets the orientation of the sequence labels appearing on the y axis. Accepted values are the same as for the las
standard option
0: always parallel to the axis (default),
1: always horizontal,
2: always perpendicular to the ax
xtlab
optional labels for the x axis ticks labels. If unspecified, the column names of the seqdata
sequence object are used (see seqdef
). xtstep
optional interval at which the tick-marks and labels of the x-axis are displayed. For example, with xtstep=3
a tick-mark is drawn at position 1, 4, 7, etc... The display of the corresponding labels depends on the available space and is dealt
cex.plot
expansion factor for setting the size of the font for the axis labels and names of the axes. The default value is 1. Values lesser than 1 will reduce the size of the font, values greater than 1 will increase it.
...
arguments to be passed to the plot function or other graphical parameters.