Jonas Stein <news <at> jonasstein.de> writes: > > Hi, > > how can i adjust the font in a ggplot2 qplot so that it will look > similar to the LaTeX font? > Computer Modern Sans Serif in the same size would be nice. > > My output device is > ggsave(filename="test.pdf", width=5.5, height=3, dpi=300) > and i will include the graphic with 5.5 inch in LaTeX. >
The easiest thing to do is to use the tikzDevice device for graphics output, and in turn the easiest thing to do is to use it within knitr ... google 'tikzDevice' ... ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.