[R] xaxp and yaxp

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Mar 11 09:19:07 CET 2002


Arne Mueller wrote:
> 
> Hello,
> 
> thanks for the reply, the axis command does exacly what I wanted.
> Although I think it's a bit more complex than it realy has to be (?). I
> mean why is there a 'xaxp' attribute if I have to calls the axis command
> anyway?

Yes. You can read out the recent values of "xaxp" for further use, but
setting them doesn't work for plot().

 plot(1:10)
 par("xaxp")	# 2  10   4


What you can do is setting "xaxp" before using axis() as in:

 plot(1:10, xaxt="n")
 par(xaxp = c(3, 7, 5))
 axis(1)

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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