Just a collection of some random cool stuff.
PS. Almost 99% of the contents here are not mine and I don't take credit for them, I reference and copy part of the interesting sections.
Friday, December 9, 2011
R multiple plots in one PNG file
library(Cairo)
CairoPNG('foo.png', width=1200, res=72) # CairoPDF('foo.pdf') # use PDF for crispier images
par(mfrow=c(2,3))
for (i in c(1:6)) { plot(sample(100)) }
dev.off()
No comments:
Post a Comment