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.s...@imail.org
801.408.8111


> -----Original Message-----
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of Timothée Poisot
> Sent: Tuesday, February 09, 2010 9:24 AM
> To: r-h...@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        :       tpoi...@um2.fr
> Web           :       http://www.timotheepoisot.fr/
> ---------------------------------------
> 
> 
>       [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to