I am trying to adjust the Y axis of a sequence index graph using the TraMineR
R package, I figured out how to set a global limit for the y axis, which is useful if you want to compare the number of specific sequences between two or more groups as it aligns the scale. But I was not able to check the y axis (as in xtstep). Perhaps you can help me quickly using this code example:
library(TraMineR) data(mvad) mvad.alphabet <- c("employment", "FE", "HE", "joblessness", "school", "training") mvad.labels <- c("Employment", "Further Education", "Higher Education", "Joblessness", "School", "Training") mvad.scodes <- c("EM", "FE", "HE", "JL", "SC", "TR") ## Define sequence objects mvad.seq <- seqdef(mvad[, 17:86], alphabet = mvad.alphabet, states = mvad.scodes, labels = mvad.labels, weights = mvad$weight, xtstep = 6) ## Plots seqIplot(mvad.seq, group=mvad$gcse5eq, withlegend=TRUE, border=NA, xtstep=3, sortv="from.start") ## Default plot seqIplot(mvad.seq, group=mvad$gcse5eq, withlegend=TRUE, border=NA, xtstep=3, sortv="from.start", ylim=c(0, 400)) ## Plot with custom ylim to compare the number of sequences between groups
The default sequence index string looks so very difficult to compare two groups: 