Description Usage Arguments Value Examples
View source: R/launch_sequenchr.R
Launches the sequenchr app in the default web browser. Optional covariates_data adds a tab containing plots of the marginal distributions of these covariates.
1 | launch_sequenchr(sequence_data, covariates_data = NULL)
|
sequence_data |
an object created from TraMineR::seqdef |
covariates_data |
optional. a dataframe with the same number of rows as sequence_data |
launches the sequenchr Shiny app
1 2 3 4 5 6 7 8 9 10 | library(TraMineR)
data(mvad)
seqstatl(mvad[, 17:86])
mvad.alphabet <- c("employment", "FE", "HE", "joblessness", "school",
"training")
mvad.labels <- c("employment", "further education", "higher education",
"joblessness", "school", "training")
mvad.seq <- seqdef(mvad, 17:86, alphabet = mvad.alphabet,
labels = mvad.labels, xtstep = 6)
#launch_sequenchr(mvad.seq)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.