Ggplot2: Difference between revisions

89 bytes added ,  14 January 2021
Line 38: Line 38:
For embedding in a latex file, I recommend exporting as PDF. This allows exporting as a vector format with text.   
For embedding in a latex file, I recommend exporting as PDF. This allows exporting as a vector format with text.   
If you must export as a raster image (jpeg, png), set the dpi flag to get a high-resolution image.
If you must export as a raster image (jpeg, png), set the dpi flag to get a high-resolution image.
Note that embed fonts requires ghostscript:
<pre>
apt-get install ghostscript -y
</pre>