[R] axis function

E. S. Venkatraman venkat at biosta.mskcc.org
Tue May 4 20:54:44 CEST 1999


I am plotting data in logarithmic scale and I find that R (0.63.2 on
Linux) and Splus (Unix v3.4 & NT v4.5) behave differently. 

In R if I use the following I get the expected (correct) behaviour

   > plot(10^(1:5),8^(1:5),xaxt="n",yaxt="n",log="xy")
   > axis(1,at=10^(1:5))
   > axis(2,at=10^(1:4))

However in Splus I get errors forcing me to use log10 for at in axis.

   > plot(10^(1:5),8^(1:5),xaxt="n",yaxt="n",log="xy")
   > axis(1,at=10^(1:5))
   Line segments out of bounds X= 10 Y= 0.7585956
   > axis(2,at=10^(1:4))
   Line segments out of bounds X= 0.84 Y= 10

Which one is considered normal behaviour?

Thanks
Venkatraman

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