help sqparcoord(SJ6-4: st0111)

Title

sqparcoord -- Parallel-coordinates plot for sequence data

Syntax

sqparcoord
[if] [in]
[, options]

ranks(numlist) restrict tabulation on most frequent
numlist

so apply same order similarity

offset(#) add random noise to vertical position of sequence lines

wlines(#) highlight sequence lines according to frequency

gapinclude include sequences with gaps in the tabulation

subsequence(a,b) use only subsequence between positions a and b

line_options most options described in line_options

twoway_options options allowed for graph twoway

Description

sqparcoord draws sequences as a parallel-coordinates plot,
with some trickery added.

Options

ranks(numlist) is used to restrict the output to the
most frequent sequences. numlist refers to the position of the
sequences in the sorted frequency table. Hence, ranks(1) refers to the
most frequent sequence, whereas ranks(1/10) refers to the 10 most
frequent sequences. You can also specify ranks(2(2)20).

so is used to request a plot where only the order of
elements is shown (same-order similarity). With this option the
sequences A-B-B-A and A-B-A-A would both be drawn as if they were
A-B-A. Option se, which is available for many other
SQ-Ados, is not applicable here.

offset(#) adds random noise to the vertical position of
sequence lines.

wlines(#) is used draw more frequent sequences thicker
than le,ss frequent ones. Within the parentheses a number is used to
specify the factor by which the thickness is increased. The number
given is multiplied with the relative frequency of the sequences and
passed as relativesize to the option lwidth() of
graph twoway line (also see linewidthstyle).

gapinclude is used to include sequences with gaps. The
default behavior is to drop sequences with gaps from the graph. The
gaps will be not visible in the parallel-coordinates plot.
The term gap refers only to missing values on the element variable
within a sequence. Sequences with missing values at the beginning and
at the end of a sequence are included in any case. You might consider
using sqset with option trim to get rid of superfluous
missings (see sq for details.)

subsequence(a,b) is used to include only the part of
the sequence that is between position a and b, whereby a and b refer
to the position defined in the order variable.

line_options are most of the options described in
line_options, nameley lwidth(), lpattern(),
lcolor() and lstyle(). For the former three, several
arguments can be specified, whereby the first argument controls the
characteristic of the line for the most frequent sequence, the second
argument controls the characteristic for the second most frequent
sequence, and so on. If you whish to change widths, colors, and/or
line patterns of all lines in the graph, you can use Stata's normal
continuation syntax, for example lcolor(red..),
lpattern(dash..), and/or lwidth(*3..).

twoway_options are a set of common options supported by all
twoway commands; see twoway_options.

Author

Ulrich Kohler, University of Potsdam, ukohler@uni-potsdam.de

Examples

. sqparcoord, wline(3) lcolor(cyan magenta yellow black

. sqparcoord, ranks(1/10) offset(.2)

Also see

Manual: [G] graph, [G] graph twoway rbar, [G] barlook options

Online: parcoord (if installed), sq,
sqdemo, sqset, sqdes, sqegen, sqstat,
sqindexplot, sqparcoord, sqom,
sqclusterdat, sqclustermat