Once we have created the state sequence object, we can visualize it to get some insights into the data.
In this recipe, we will visualize the state sequence objects, based on the previous recipe.
Perform the following steps in R:
> seqiplot(seq_mvad)
> seqfplot(seq_mvad)
> seqdplot(seq_mvad)
> seqmtplot(seq_mvad)
> seqiplot(seq_mvad, group = mvad$male)
> seqmtplot(seq_mvad, group = mvad$male)
> seqHtplot(seq_mvad)
> seqHtplot(seq_mvad, group = mvad$male)
Using different types of plots, we can now visualize the state sequence object. seqplot
is a generic function for plotting the state sequence objects. Different functions will produce plots in different manners. The following is a brief description:
seqiplo
t: Sequence is rendered as a horizontal stack bar showing the states over a period over timeseqfplot
: Renders the sequence in a horizontal bar, displaying...