[R] Reset par(xaxp) in plot
Yang, Richard
dyang at nrcan.gc.ca
Tue Aug 20 16:19:39 CEST 2002
R-Helpers;
This seems simple to set graphic parameter, but I tried plot a graph
with 10 intervals in x axis with par(xaxp = c(0, 150, 10) but to no avail:
par(xaxp =c (0, 150, 10))
plot(age, y18, type="n", ylab="Height (m)", xlab=" age (Yrs)", font
= 2)
lines(age, y6, lty = 4, lwd = 2)
lnes(age, y10, lty = 1, lwd =2)
lines(age, y14, lty = 2, lwd =2)
lines(age, y18, lty = 3, lwd = 2)
abline(v=50)
The plot shown only 3 intervals with tick at 0, 50, 100, and 150. and
> par()$xaxp
[1] 0 150 3
I use current version Lattice and Grid.
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status Patched
major 1
minor 5.0
year 2002
month 05
day 15
language R
What did I miss?
Richard
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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