[R] How to get xlim & ylim afterwards...
tlumley at u.washington.edu
Tue Feb 13 01:31:57 CET 2001
On Mon, 12 Feb 2001, HENRIK Bengtsson wrote:
> After plotting how can you get the x and y limits of the plot? I would
> like to do something like:
> plot.area <- plot.get.area();
> xlim <- plot.area$xlim;
> ylim <- plot.area$xlim;
> Is there a "plot.get.area()" method? I need it to place my legends.
returns a vector with the upper and low ylim and upper and lower xlim on
the current device.
Thomas Lumley Asst. Professor, Biostatistics
tlumley at u.washington.edu University of Washington, Seattle
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