Saturday, May 17, 2008

Export plots in R

In R exporting plots is easy:

jpeg("/home/Desktop/nameplot_here.jpg") #name the file and where to export it

hist(data) #this makes a histogram of your data

dev.off() #actually do the exporting

To do png or pdf just substitute it for jpeg.