[R] Turning off axis annotation?

Bill Simpson wsi at gcal.ac.uk
Fri Oct 6 11:30:07 CEST 2000


In order to get help on plots you need to do BOTH
?plot
and
?par

Many par arguments can be used as plot arguments. Not all of them though.
I never had a clear explanation of this.

So if you do ?par you will see

 ann: If set to `FALSE', high-level plotting functions do not
          annotate the plots they produce with axis and overall titles.
          The default is to do annotation.

And so you do
plot(x,y,ann=FALSE)
This leaves off the x and y titles. You still have the numerical labels
next to each tick.

If you want a lot of control you can do

plot(x,y,ann=FALSE,axes=FALSE)
box()  
axis(side=1,labels=TRUE)
axis(side=2,labels=TRUE)
mtext("Y", side=2, line=2)
mtext("X", side=1, line=2)

You might want to do ?axis

Bill

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list