I have several ggplots as objects on my ls. I want to save them as separate files (although I would also be interested to know how to save them all under 1 big file). I have
If the plots p1, p10, etc. already exist, and you want them saved as p1.pdf, etc., then I think this should do it:
p1
p10
p1.pdf
lapply(plots,function(x){ggsave(file=paste(x,"pdf",sep="."),get(x))})
ggsave(...) has a number of arguments for specifying the dimensions and format of the output file.
ggsave(...)