Subject: Re: [R] (Newbie) using par() to regulate viewing area in graphs
From: Kaspar Pflugshaupt (pflugshaupt@geobot.umnw.ethz.ch)
Date: Thu 28 Sep 2000 - 22:25:23 EST
Message-ID: <B5F90553.3F28%pflugshaupt@geobot.umnw.ethz.ch>
On 28.9.2000 10:49 Uhr, Norberto Eiji Nawa wrote:
> Hello:
>
> I should first apologize for the very basic question, but I ought to
> start from somewhere [embarrassed grin].
No reason to be embarrassed, most of us started asking questions like this.
I still do.
>
> I am using R-1.0.0 in a Windows 98 machine to plot some graphs. I
> tried to apply a "zoom in" in some portions of the graph using say
> 'par(yaxp=c(0.35,0.40,5))' but nothing happens, no error msg, no
> update in the active graphics device. What should be the procedure to
> "zoom in" in a graph?
>
AFAIK, this is not possible, since the axis ranges are saved with the plot
and can't be changed afterwards. You'll have to change the settings and redo
the graph. If it's a complicated graph, you should pack the commands into a
small function. It's more convenient.
If you upgrade to R 1.11 (which I'd do anyway), you can save a plot to a
variable and recall it later (although not with different settings). Still,
you can then easily compare several versions.
Have fun
Kaspar
--Kaspar Pflugshaupt Geobotanisches Institut Zuerichbergstr. 38 CH-8044 Zuerich
Tel. ++41 1 632 43 19 Fax ++41 1 632 12 15
mailto:pflugshaupt@geobot.umnw.ethz.ch privat:pflugshaupt@mails.ch http://www.geobot.umnw.ethz.ch
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2b25 : Thu 01 Feb 2001 - 16:14:25 EST