Great! Thanks, Yihui and David.
On Wed, Sep 23, 2009 at 1:04 PM, Yihui Xie wrote:
> Something like
>
> for(i in 1:20){
> pdf(sprintf("myplot%d.pdf",i))
> # your calculation and plots here
> dev.off()
> }
>
> If you have 100 plots in total, then you should have 5 graphs in each
> single pdf.
>
Something like
for(i in 1:20){
pdf(sprintf("myplot%d.pdf",i))
# your calculation and plots here
dev.off()
}
If you have 100 plots in total, then you should have 5 graphs in each
single pdf.
Regards,
Yihui
--
Yihui Xie
Phone: 515-294-6609 Web: http://yihui.name
Department of Statistics, Io
On Sep 22, 2009, at 9:50 PM, Weiwei Shi wrote:
Hi there,
I am wondering if there is a function in R to save plots
automatically, like
save() for R objects? I have e.g. 100 plots and I cannot put them in
one pdf
file so I split them, eg into 20 files, but I don't want to save one
file
ea
3 matches
Mail list logo