Re: [R] overdrawing a plot

2008-02-23 Thread hadley wickham
> I had a similar problem, and Paul Murrell sent me a workaround: > > http://finzi.psych.upenn.edu/R/Rhelp02a/archive/104038.html > > "You can capture the ggplot drawing as a grid grob (gTree), edit that (no > drawing occurs to this point), and then draw it ..." > > Hadley realized that this i

Re: [R] overdrawing a plot

2008-02-20 Thread Dieter Menne
Gallego Liberman, Matias isofoton.com> writes: > When using grid.edit inside a pdf device it applies the changes on a > second plot, not erasing the first one. .. > >DF<-data.frame(A=c(1:12),B=c(1:12)*c(rnorm(12,mean=1)),C=2*c(1:12),D=re > p(c(1:4),each=3)) > >trellis.device(pdf,file='prueba.pdf

[R] overdrawing a plot

2008-02-20 Thread Gallego Liberman, Matias
Hi helpers. I have the following problem and I need some help When using grid.edit inside a pdf device it applies the changes on a second plot, not erasing the first one. Here it is an example. >DF<-data.frame(A=c(1:12),B=c(1:12)*c(rnorm(12,mean=1)),C=2*c(1:12),D=re p(c(1:4),each=3)) >trellis.d