hadley/ggplot2 — pull request #841 by ThierryO (2013-07-15 09:58:06+00:00)
Title: Create ggsave-latex.R

This function makes it easier the use ggplot figures in a LaTeX environment by creating the required LaTeX and saving the figure in one line of code. The function uses ggsave to write the figure to the disc and print the LaTeX code to the screen.