I am battling to define the y-axis of a plot using seqmtplot. I followed the steps described in a previous post (How to configure y-axis using seqIplot in R?). However, they do not seem to work for seqmtplot.
The y axis of my plot goes from 0 to 9, so I want it to disply tick marks in intervals of 1 i.e. 0, 1, 2...9
I am running these lines of code.
seqmtplot(LSAY.seq, group= , title="Mean time", yaxis=F)
#axis(2, at=seq(from=0, to=9, by=1))
The problem with this is that the starting point of the y axis (i.e. 0) of my plot moved below the bars displaying the data.
Any ideas how could I fix this?
A second associated question is: how can I access the data underlaying the plot produced by seqmtplot?
Thanks in advance.
You can control the length of the y axis with
ylim=
. For instance using themvad.seq
state sequences defined in How to configure y-axis using seqIplot in R?For controlling the tick marks, you need, as already explained in How to configure y-axis using seqIplot in R?, to
yaxis=FALSE
withlegend=F
.and you should then plot the legend separately. For example:
The data plotted are accessible with