The following code always generate a file called 'Rplots.pdf'. Such a
file can be just removed as shown in the code on the following link.
But I'm wondering if there a way not to generate such a redundant file
in the first place?
library(ggplot2)
tmp=data.frame(V1=rnorm(10)
, V2=rnorm(10)
)
p=qplot(V1,V2,data=tmp)
ggsave(p, file='outfile.png')
--
Regards,
Peng
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>
--
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org
I forgot to mention that I use Rscript like the following.
Rscript file.R
--
Regards,
Peng