Search code examples
rplotggplot2latexeps

Plotting in R using ggplot2 and latex


I am plotting a bar graph in R and exporting as eps, the plot looks excellent. When i add it to my latex file it messes up the font any recommendations ?

Here is the original eps enter image description here

Here is the image in the pdf produced in the latex, i am doing

\includegraphics[width=\columnwidth]{file.eps}

enter image description here


Solution

  • Could it be that your controlling the width of the picture which is messing up the aspect ratio? In LaTeX I usually use [scale=.X] and play around a bit until it's the correct size. That way the aspect ratio is kept the same.