[R] Bug in axis(...,tcl=0)?
Hedderik van Rijn
rijn at swi.psy.uva.nl
Mon Jan 11 16:53:37 CET 1999
Hi,
first of all, I would like to take this opportunity to thank all of you
"answer guys" for giving such detailed answers. I think I've learned about
as much from all these answers as from the different S/R documents I've
read so far.
Anyway, I ran into a incompatability between S and R, that is, R does not
know the "ticks=T/F" argument to functions like axis and plot. Knowing
that R is not S, I tried to do it in a different way by adding "tcl=0" to
the axis call. This works fine, however, in next calls to axis, it seems
to remember this tcl setting, whereas settings like tck are not
remembered. Is there a rationale behind this behavior, or is this a bug?
Below is the code which demonstrates this, ran in R version 63.1, on a
linux machine:
plot(c(1:10),c(1:10),axes=F,type="n");
box();
par()$tcl # [1] -0.5
axis(1,c(1:10),tcl=0)
par()$tcl # [1] -0.5
# I expected the next command to draw tick marks, but they don't show
axis(2,c(1:10))
# Draw them anyway
axis(2,c(1:10),tcl=-0.5)
# Show that other arguments are not "remembered"
axis(3,c(1:10),tck=0.5)
axis(4,c(1:10))
Greetings,
Hedderik.
--
http://www.swi.psy.uva.nl/usr/rijn
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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