« Revolution R update adds Red Hat 6 support | Main | R charts used for analysis at Politico »

February 09, 2012

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Min 46. To export a ggplot2 graphic in Linux do this at the R command line:

png("my cool plot.png")
qplot( x = blee, y = blaa, shape = blarg )
dev.off()


Dev.off() says "I'm done writing to that png file now, so close it off". After that your next qplot() will print on the screen instead of printing to that file.

The comments to this entry are closed.

Search Revolutions Blog




Got comments or suggestions for the blog editor?
Email David Smith.
Follow revodavid on Twitter Follow David on Twitter: @revodavid
Get this blog via email with Blogtrottr