Re: [R] [FORGED] Plotting in LaTeX with ggplot2 in R and using tikzdevice

2016-08-03 Thread Ulrik Stervbo
I saved my plots as pdf and used pdflatex. It's a few years ago and now you can even use the r-package cowplot to create panels with subfigures. That means more work with r, less manual work. I believe kable from the knitr package can export tables for latex too. Hope this helps. Ulrik Paul Murr

Re: [R] [FORGED] Plotting in LaTeX with ggplot2 in R and using tikzdevice

2016-08-03 Thread Paul Murrell
Hi You might need an approach that converts the ggplot object to a gtable and then either combine the gtables as here ... http://stackoverflow.com/questions/16255579/how-can-i-make-consistent-width-plots-in-ggplot-with-legends ... or explicitly control the width of the plot within the gtable