[R] get ylim of current plot()
Uwe Ligges
ligges at statistik.uni-dortmund.de
Thu Aug 31 20:32:32 CEST 2006
William Valdar wrote:
> 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)
par("usr") tells you the size in user coordinates.
Uwe Ligges
> 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
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list