
Last chance! 50% off unlimited learning
Sale ends in
Places labels on an axis in a regular staggered order or at an angle
staxlab(side=1,at,labels,nlines=2,top.line=0.5,line.spacing=0.8,
srt=NA,ticklen=0.03,adj=1,...)
axis on which to place the labels, as in axis
where to place the labels in user units, as in axis
text strings
How many lines to use to stagger the labels.
Distance from the axis to place the first line of text.
Spacing between lines of text labels.
Text rotation.
Proportion of plot height in user units to place text below the plot.
horizontal adjustment of the labels.
Additional arguments to be passed to mtext or text.
nil
# NOT RUN {
x<-rnorm(12)
plot(x,axes=FALSE)
box()
months<-c("January","February","March","April","May","June",
"July","August","September","October","November","December")
staxlab(1,1:12,months)
plot(x,axes=FALSE)
box()
staxlab(1,1:12,months,srt=45)
ylabels<-round(seq(min(x),max(x),length.out=10),3)
staxlab(2,ylabels,ylabels,srt=45)
# }
Run the code above in your browser using DataLab