seqfplot {TraMineR}R Documentation

Graphic presenting the frequency of sequences

Description

The sequences are presented as stacks of successive states, ordered by their relative frequency in the dataset.

Usage

 seqfplot(seqdata, tlim=10, title=NULL, cpal=NULL, pbarw=FALSE,
        withlegend=TRUE, ltext=NULL, xtlab=NULL, bmar=1)

Arguments

seqdata a sequence object created with the seqdef function.
tlim if tlim>0, shows only the 'tlim' most frequent sequences. Default to 10.
title title for the graphic. Default to NULL.
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 distinct states. By default, the 'cpal' attribute of the 'seqdata' sequence object is used (see seqdef).
pbarw if pbarw=TRUE, the width of the bars are proportional to the sequence frequency in the dataset. Default to FALSE.
withlegend if TRUE, a legend is plotted. Default to TRUE.
ltext optional description of the states to appear in the legend. Must be a vector of character strings with number of elements equal to the number of distinct states. If unspecified, the 'label' attributes of the 'seqdata' sequence object is used (see seqdef).
xtlab optional labels for the x axis ticks labels. If unspecified, the column names of the 'seqdata' sequence object are used (see seqdef).
bmar base margin for the top and bottom of the graphic, that is, the amount of white space surrouding it.

See Also

seqtab.

Examples

## Plot of the 10 most frequent sequences 
## with equal bar width
data(biofam)

biofam.seq <- seqdef(biofam,10:25) 
seqfplot(biofam.seq)

## The same plot with
## proportional bar width
seqfplot(biofam.seq, pbarw=TRUE)

[Package TraMineR version 1.0 Index]