so the only difference is type="pdf" vs type="png". The PNG rendering is correct. In the PDF, however, every piece of text is much too large, as are all of the lines, and because the text takes up too much space, the plot is crushed into illegibility.
If there is a workaround of any sort, please advise.
The attached PNG and PDF were both rendered from an identical ggplot2 plot (
dput(ggplotGrob(plot))
is also attached) using this procedureso the only difference is
type="pdf"
vstype="png"
. The PNG rendering is correct. In the PDF, however, every piece of text is much too large, as are all of the lines, and because the text takes up too much space, the plot is crushed into illegibility.If there is a workaround of any sort, please advise.
font-size-bug.png font-size-bug.pdf plot.grob.txt.gz