You can control the length of the y axis with ylim=
. For instance using the mvad.seq
state sequences defined in How to configure y-axis using seqIplot in R?
seqmtplot(mvad.seq, title="Mean time", ylim=c(0,30))
For controlling the tick marks, you need, as already explained in How to configure y-axis using seqIplot in R?, to
- Disable the plotting of the y-axis with
yaxis=FALSE
- Disable the legend with
withlegend=F
.
and you should then plot the legend separately. For example:
par(mfrow=c(1,2))
seqmtplot(mvad.seq, title="Mean time", yaxis=F, ylim=c(0,30), withlegend=FALSE)
axis(2, at=seq(from=0, to=30, by=5))
seqlegend(mvad.seq)
The data plotted are accessible with
seqmeant(mvad.seq)