[R] par(xaxp)
Robert D. Merithew
merithew at ccmr.cornell.edu
Wed Jun 5 17:54:26 CEST 2002
I don't understand why this doesn't work:
----
plot(c(0,1),c(0.2,0.3),xaxt="n")
axis(1,xaxp=c(0,1,4))
----
Or why this (more obvious to me) doesn't work:
----
plot(c(0,1),c(0.2,0.3),xaxp=c(1,0,4))
----
(I still get 5 intervals on the x-axis)
This has bothered me for months. I still don't understand why I
shouldn't expect only 4 intervals in both of these cases.
It wasn't until I saw this exchange that I realized that:
----
plot(c(0,1),c(0.2,0.3),xaxt="n")
par(xaxp=c(0,1,4))
axis(1)
----
does work.
Perhaps if someone can explain to me why the first two don't work, I'll be
better able to anticipate this behavior in other R functions in the
future...
Should "xaxp" be listed among the options which can't be set in
"high-level" and "mid-level" plot functions in the documentation for
"par"?
Plot and axis don't give error messages, such as the one 'plot' gives if I
try to set "ps"...
platform i586-pc-linux-gnu
arch i586
os linux-gnu
system i586, linux-gnu
status
major 1
minor 5.0
year 2002
month 04
day 29
language R
confused,
--
Robert Merithew, PhD
LASSP, Clark Hall
Cornell University
Ithaca NY 14850 USA
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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