[R] Formula used to create new plot
Greg Snow
Greg.Snow at imail.org
Tue Feb 9 22:32:25 CET 2010
It is not clear what exactly you want, but here are some ideas.
Lattice and ggplot2 allow you to save graph objects that can then be modified/printed/plotted, there is information in there on types of axes etc.
For basic graphics (and others) you can use the history command to see recent plotting commands issued.
The plot2script function in the TeachingDemos package will create a script that will recreate the current plot (but uses low level plotting commands, not the same as was typed in).
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Timothée Poisot
> Sent: Tuesday, February 09, 2010 9:24 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Formula used to create new plot
>
> Dear list users,
>
> I was wondering if there is any way to know, for an open graphical
> peripheric, the instruction that was used to call it. For example, if I
> create a plot using
>
> plot(runif(10))
>
> is there any way to have the call returned to me? That would be
> especially usefull to know it there are any log axes, for example
>
> thanks
> t
>
>
>
> ---------------------------------------
> Timothée POISOT
> -
> Institut des Sciences de l'Evolution
> Université Montpellier 2, CC 065
> Place Eugène Bataillon
> 34095 Montpellier CEDEX 5
> -
> Phone : (+33)4 67 14 40 61
> Fax : (+33)4 67 14 40 61
> E-mail : tpoisot at um2.fr
> Web : http://www.timotheepoisot.fr/
> ---------------------------------------
>
>
> [[alternative HTML version deleted]]
More information about the R-help
mailing list