I would be very grateful for advice. I would would like to include all x-axis labels on ticks, reduce the font size so that they don't overlap and rotate them. In this example, there are 23 tick marks but only 12 1abels. I would like them all displayed. Many thanks!
data(mvad)
mvad=mvad%>%select(1:37)
mvad.labels <- c("employment", "further education", "higher education",
"joblessness", "school", "training")
mvad.scodes <- c("EM","FE","HE","JL","SC","TR")
mvad.seq <- seqdef(mvad, 15:37, states=mvad.scodes, labels=mvad.labels)
seqiplot(mvad.seq, withlegend=F)
The code below provides different options to obtain the desired goal. Note that I have chosen a tiny font size to illustrate the point. You can either use
TraMineR
'sseqplot
command (which uses base R'splot
environment) orggseqplot
(which usesggplot2
internally).Created on 2023-10-17 with reprex v2.0.2