TraMineR: Trajectory Miner: a Toolbox for Exploring and Rendering Sequences

Toolbox for the manipulation, description and rendering of sequences, and more generally the mining of sequence data in the field of social sciences. Although the toolbox is primarily intended for analyzing state or event sequences that describe life courses such as family formation histories or professional careers, its features also apply to many other kinds of categorical sequence data. It accepts many different sequence representations as input and provides tools for converting sequences from one format to another. It offers several functions for describing and rendering sequences, for computing distances between sequences with different metrics (among which optimal matching), original dissimilarity-based analysis tools, and simple functions for extracting the most frequent subsequences and identifying the most discriminating ones among them. A user's guide can be found on the TraMineR web page.

Install the latest version of this package by entering the following in R:
AuthorAlexis Gabadinho [aut, cph], Matthias Studer [aut, cph], Nicolas Muller [aut], Reto Buergin [aut], Gilbert Ritschard [aut, cre, cph]
Date of publication2016-10-06 00:58:53
MaintainerGilbert Ritschard <>
LicenseGPL (>= 2)

View on CRAN

Man pages

actcal: Example data set: Activity calendar from the Swiss Household...

actcal.tse: Example data set: Activity calendar from the Swiss Household...

alphabet: Get or set the alphabet of a sequence object

bfspell: Example data set: First 20 biofam sequences in SPELL form

biofam: Example data set: Family life states from the Swiss Household...

cpal: Get or set the color palette of a sequence object

dissassoc: Analysis of discrepancy from dissimilarity measures

disscenter: Compute distances to the center of a group

dissmfac: Multi-factor ANOVA from a dissimilarity matrix

dissrep: Extracting sets of representative objects using a...

disstree: Dissimilarity Tree

disstree2dot: Graphical representation of a dissimilarity tree

disstreeleaf: Terminal node membership

dissvar: Dissimilarity based discrepancy

ex1: Example data set with missing values and weights

ex2: Example data sets with weighted and unweighted sequence data

famform: Example data set: sequences of family formation

mvad: Example data set: Transition from school to work

plot.seqdiff: Plotting a seqdiff object.

plot.stslist: Plot method for state sequence objects

plot.stslist.freq: Plot method for sequence frequency tables

plot.stslist.meant: Plot method for objects produced by the seqmeant function

plot.stslist.modst: Plot method for modal state sequences

plot.stslist.rep: Plot method for representative sequence sets

plot.stslist.statd: Plot method for objects produced by the seqstatd function

plot.subseqelist: Plot frequencies of subsequences

plot.subseqelistchisq: Plot discriminant subsequences

read.tda.mdist: Read a distance matrix produced by TDA.

seqalign: Computation details about a pairwise alignment

seqcomp: Compare two state sequences

seqconc: Concatenate vectors of states or events into a character...

seqdecomp: Convert a character string into a vector of states or events

seqdef: Create a state sequence object

seqdiff: Position-wise discrepancy analysis between groups of...

seqdim: Dimension of a set of sequences

seqdist: Distances (dissimilarities) between sequences

seqdistmc: Multichannel distances between sequences

seqdss: Extract distinct states sequence from a sequence object

seqdur: Extract state durations from a sequence object.

seqe: Event sequence object

seqeapplysub: Checking for the presence of given event subsequences

seqecmpgroup: Identifying discriminating subsequences

seqeconstraint: Setting time constraints and the counting method

seqecontain: Check if sequence contains events

seqecreate: Create event sequence objects.

seqefsub: Searching for frequent subsequences

seqeid: Retrieve unique ids from an event sequence object.

seqelength: Lengths of event sequences

seqetm: Create a transition-definition matrix

seqeweight: Setting or retrieving weights of an event sequence object.

seqfcheck: Check if sequences are in the compressed or extended format

seqfind: Indexes of state sequence(s) x in state sequence object y

seqformat: Conversion between sequence formats

seqfpos: Search for the first occurrence of a given element in a...

seqgen: Random sequences generation

seqici: Complexity index of individual sequences

seqient: Within sequence entropies

seqistatd: State frequencies in each individual sequence

seqlegend: Plot a legend for the states in a sequence object

seqlength: Sequence length

seqLLCP: Compute the length of the longest common prefix of two...

seqLLCS: Compute the length of the longest common subsequence of two...

seqlogp: Logarithm of the probabilities of state sequences

seqmeant: Mean durations in each state

seqmodst: Sequence of modal states

seqmpos: Number of matching positions between two sequences.

seqnum: Transform into a sequence object with numerical alphabet.

seqpcplot: Parallel coordinate plot for sequence data

seqplot: Plot state sequence objects

seqpm: Find substring patterns in sequences

seqrecode: Recoding state sequence objects and factors

seqrep: Extracting sets of representative sequences

seqsep: Adds separators to sequences stored as character string

seqST: Sequences turbulence

seqstatd: Sequence of transversal state distributions and their...

seqstatf: State frequencies in the whole sequence data set

seqstatl: List of distinct states or events (alphabet) in a sequence...

seqsubm: Create a substitution-cost matrix

seqsubsn: Number of distinct subsequences in a sequence.

seqtab: Frequency table of the sequences

seqtransn: Number of transitions in a sequence

seqtrate: Compute transition rates between states

seqtree: Tree structured analysis of a state sequence object.

seqtreedisplay: Graphical rendering of a sequence regression tree

stlab: Get or set the state labels of a sequence object

str.seqe: String representation of an event sequence object

TraMineR.checkupdates: Check for TraMineR updates

TraMineRInternal: Access to TraMineR internal functions

TraMineR-package: Trajectory Miner: a Toolbox for Exploring and Rendering...


actcal Man page
actcal.tse Man page
alphabet Man page
alphabet<- Man page
as.character.seqe Man page
as.character.seqelist Man page
bfpdata20 Man page
bfspell Man page
bfspell20 Man page
biofam Man page
cpal Man page
cpal<- Man page
createsubseqelist Man page
dissassoc Man page
disscenter Man page
dissmfac Man page
dissmfacw Man page
dissreg Man page
dissrep Man page
disstree Man page
disstree2dot Man page
disstree2dotp Man page
disstreedisplay Man page
disstreeleaf Man page
dissvar Man page
ex1 Man page
ex2 Man page
ex2.unweighted Man page
ex2.weighted Man page
famform Man page
gower_matrix Man page
hist.dissassoc Man page
is.seqe Man page
is.seqelist Man page
is.subseqelist Man page
levels.seqe Man page
levels.seqelist Man page
Math.seqe Man page
Math.seqelist Man page
mvad Man page
Ops.seqe Man page
Ops.seqelist Man page
plot.seqalign Man page
plot.seqdiff Man page
plot.seqe Man page
plot.seqelist Man page
plot.stslist Man page
plot.stslist.freq Man page
plot.stslist.meant Man page
plot.stslist.modst Man page
plot.stslist.rep Man page
plot.stslist.statd Man page
plot.subseqelist Man page
plot.subseqelistchisq Man page
print.dissassoc Man page
print.dissmultifactor Man page
print.dissregression Man page
print.disstree Man page
print.seqalign Man page
print.seqdiff Man page
print.seqe Man page
print.seqeconstraint Man page
print.seqelist Man page
print.stslist Man page
print.subseqelist Man page
read.tda.mdist Man page
recodef Man page
seqalign Man page
seqcomp Man page
seqconc Man page
seqdecomp Man page
seqdef Man page
seqdiff Man page
seqdim Man page
seqdist Man page
seqdistmc Man page
seqdplot Man page
seqdss Man page
seqdur Man page
seqeapplysub Man page
seqecmpgroup Man page
seqeconstraint Man page
seqecontain Man page
seqecreate Man page
seqecreatesub Man page
seqefsub Man page
seqeid Man page
seqelength Man page
seqelength<- Man page
[.seqelist Man page
seqesetlength Man page
seqetm Man page
seqeweight Man page
seqeweight<- Man page
seqfcheck Man page
seqfind Man page
seqformat Man page
seqfplot Man page
seqfpos Man page
seqgen Man page
seqHtplot Man page
seqici Man page
seqient Man page
seqiplot Man page
seqIplot Man page
seqistatd Man page
seqlegend Man page
seqlength Man page
seqLLCP Man page
seqLLCS Man page
seqlogp Man page
seqmeant Man page
seqmodst Man page
seqmpos Man page
seqmsplot Man page
seqmtplot Man page
seqnum Man page
seqpcfilter Man page
seqpcplot Man page
seqplot Man page
seqpm Man page
seqrecode Man page
seqrep Man page
seqrplot Man page
seqsep Man page
seqST Man page
seqstatd Man page
seqstatf Man page
seqstatl Man page
seqsubm Man page
seqsubsn Man page
seqtab Man page
seqtransn Man page
seqtrate Man page
seqtree Man page
seqtree2dot Man page
seqtreedisplay Man page
stlab Man page
stlab<- Man page
str.seqe Man page
str.seqelist Man page
[.subseqelist Man page
Summary.seqe Man page
Summary.seqelist Man page
TraMineR Man page
TraMineR.checkupdates Man page
TraMineRInternalLayout Man page
TraMineRInternalLegend Man page
TraMineRInternalNodeInit Man page
TraMineRInternalSeqeage Man page
TraMineRInternalSeqgbar Man page
TraMineRInternalSplitInit Man page
TraMineR-package Man page


demo/Rendering.R demo/Events.R demo/Seqdist.R
R/dissassoc.R R/summary-stslist.R R/seqpm.R R/stlab-set.R R/entropy.R R/STS_to_DSS.R R/checktriangleineq.R R/stslist-methods.R R/seqtransn.R R/seqdist.R R/SPS_to_STS.R R/seqdur.R R/stslist.meant-methods.R R/implicativestat.R R/plot.stslist.R R/TraMineR-length.R R/seqdecomp.R R/seqplot.R R/seqST.R R/dissmfacw.R R/seqmodst.R R/STS_to_SRS.R R/seqshift.R R/cpal-set.R R/seqedist.R R/seqrep.R R/seqdef.R R/seqgbar.R R/seqconc.R R/disstree.dissassoc.R R/TraMineR.checkupdates.R R/seqstatd.R R/TraMineR-trunc.R R/SPELL_to_STS.R R/seqstatl.R R/TraMineR-seqdist.R R/read.tda.mdist.R R/seqici.R R/stslist.rep-methods.R R/seqdplot.R R/TraMineR-legend.R R/seqlogp.R R/seqsubm.R R/seqpcplot.R R/TraMineR-setlayout.R R/seqe2tse.R R/seqsep.R R/STS_to_SPS.R R/seqmtplot.R R/plot.stslist.modst.R R/seqcomp.R R/seqHtplot.R R/stslist.modst-methods.R R/seqtab.R R/seqient.R R/seqistatd.R R/alphabet.R R/TraMineR-mscore.R R/seqLLCP.R R/TraMineRInternal.R R/plot.stslist.statd.R R/dissmfac.R R/seqdistold.R R/seqecreate.R R/seqientdiff.R R/dissvar.R R/seqfind.R R/seqeid.R R/plot.stslist.rep.R R/seqdistmc.R R/cpal.R R/seqmsplot.R R/seqgen.R R/debuglevel.R R/seqlegend.R R/seqsubsn.R R/seqdss.R R/seqalign.R R/seqdim.R R/TraMineR-permutation.R R/seqecmpgroup.R R/vidx.R R/plot.seqalign.R R/seqfpos.R R/stslist.statd-methods.R R/alphabet-set.R R/print.disstree.R R/seqformat.R R/disstree.r R/diss.rep-methods.R R/disstree2dot.R R/LCSdist.R R/seqtree.R R/seqecontain.R R/seqxtract.R R/stlab.R R/dist2matrix.R R/subseqelist.R R/seqmpos.R R/seqfcheck.R R/seqrecode.R R/BIOSPELL_to_STS.R R/seqprep.R R/seqelength.R R/TraMineR-group.R R/seqeconstraint.R R/seqetm.R R/stslist.freq-methods.R R/seqmatsaltt.R R/seqdiff.R R/seqasnum.R R/normdist.R R/seqefsub.R R/dissrep.R R/seqiplot.R R/seqtrate.R R/seqfplot.R R/seqrplot.R R/dissassocweighted.R R/plot.stslist.freq.R R/LCPdist.R R/TraMineR-checkcost.R R/seqstatf.R R/seqmeant.R R/seqLLCS.R R/seqerules.R R/disscenter.R R/plot.stslist.meant.R R/STS_to_TSE.R R/Levenshtein.R R/zzz.R R/seqnum.R R/seqeapplysub.R R/seqlength.R R/DHDdist.R R/seqe.R R/seqeweight.R
man/seqstatl.Rd man/dissrep.Rd man/seqstatd.Rd man/actcal.Rd man/seqplot.Rd man/mvad.Rd man/plot.seqdiff.Rd man/seqdss.Rd man/seqeweight.Rd man/seqgen.Rd man/seqsubm.Rd man/biofam.Rd man/famform.Rd man/plot.stslist.statd.Rd man/seqefsub.Rd man/seqstatf.Rd man/seqLLCP.Rd man/seqici.Rd man/seqtrate.Rd man/seqelength.Rd man/ex2.Rd man/seqdur.Rd man/plot.stslist.freq.Rd man/seqecontain.Rd man/seqmeant.Rd man/disstree2dot.Rd man/plot.subseqelist.Rd man/dissvar.Rd man/disstree.Rd man/seqformat.Rd man/plot.stslist.modst.Rd man/bfspell.Rd man/seqe.Rd man/seqrecode.Rd man/seqlogp.Rd man/seqdecomp.Rd man/disstreeleaf.Rd man/ex1.Rd man/seqeapplysub.Rd man/cpal.Rd man/seqtab.Rd man/seqlength.Rd man/TraMineRInternal.Rd man/disscenter.Rd man/seqecmpgroup.Rd man/plot.stslist.Rd man/TraMineR-package.Rd man/seqdistmc.Rd man/seqpcplot.Rd man/seqLLCS.Rd man/read.tda.mdist.Rd man/seqeid.Rd man/seqient.Rd man/seqlegend.Rd man/seqetm.Rd man/seqfpos.Rd man/seqcomp.Rd man/str.seqe.Rd man/seqecreate.Rd man/seqdim.Rd man/seqnum.Rd man/seqconc.Rd man/plot.stslist.rep.Rd man/seqtreedisplay.Rd man/seqeconstraint.Rd man/seqtree.Rd man/alphabet.Rd man/seqdef.Rd man/TraMineR.checkupdates.Rd man/seqmodst.Rd man/stlab.Rd man/seqST.Rd man/seqfind.Rd man/seqtransn.Rd man/actcal.tse.Rd man/seqfcheck.Rd man/seqsubsn.Rd man/seqdiff.Rd man/plot.subseqelistchisq.Rd man/plot.stslist.meant.Rd man/dissassoc.Rd man/seqrep.Rd man/seqalign.Rd man/seqdist.Rd man/seqpm.Rd man/seqmpos.Rd man/dissmfac.Rd man/seqsep.Rd man/seqistatd.Rd

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.