seq_heatmap | R Documentation |
Index plot of state sequences. Sequences are ordered according to the specified dendrogram. The dendrogram is also plotted on the side of the index plot.
seq_heatmap(seq, tree, with.missing = FALSE, ...)
seq |
a state sequence object created with the |
tree |
a dendrogram of the sequences (an object of class |
with.missing |
is there a 'missing value' state in the sequences? |
... |
additional parameters sent to |
http://joseph.larmarange.net/?Representer-un-tapis-de-sequences
seqIplot
if (require(TraMineR)) {
data(mvad)
mvad.seq <- seqdef(mvad[,17:86])
mvad.lcs <- seqdist(mvad.seq, method = "LCS")
mvad.hc <- hclust(as.dist(mvad.lcs), method = "ward.D2")
seq_heatmap(mvad.seq, mvad.hc)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.