0

I created an RMarkdown file to create 4 charts and save them on my desktop. I'm using ggsave and have forced the DPI to 280 so that the output images look good.

The issue I'm having is that when the script is run on my colleague's computer, the charts in the output look all over the place. Here is an example of the output

I even tried several DPIs to see if we needed a specific DPI for that computer, but the output didn't change. It looks the same.

What can be causing that? Something in the settings?

Jahannie
  • 1
  • 1
  • an update to ggplot2 in 2021 changed the default graphics device from cairo to ragg. Try to update ggplot2 to the latest version on both systems and see if this improves it. If not you may need to set the device to cairo as an additional argument to ggsave. https://community.rstudio.com/t/ggsave-cairo-error/108749 – qdread Dec 20 '22 at 18:22

0 Answers0