[R] get ylim of current plot()
William Valdar
valdar at well.ox.ac.uk
Thu Aug 31 20:22:20 CEST 2006
Dear All,
How can I query the parameters of the current plot if it was produced by
plot()? For example, if I do not specify ylim explicitly, eg,
plot(rnorm(100), rnorm(100))
then how do find out what ylim was chosen? Note that I realize this is
possible with lattice's xyplot():
(obj <- xyplot(rnorm(100), rnorm(100)))
print(obj$y.limits)
Thanks in advance,
Will
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Dr William Valdar ++44 (0)1865 287 589
Wellcome Trust Centre valdar at well.ox.ac.uk
for Human Genetics, Oxford www.well.ox.ac.uk/~valdar
More information about the R-help
mailing list