ggsave cannot export a readable plot even with a dpi of 3000

311 views Asked by At

Using the code below, I am trying to save a ggplot to as a png file. Although dpi is pretty high, the saved png file is not even readable. As shown in the image below, the export option in the files pane provides a better resolution. Is there any way to fix this?

ggsave(file="circulatory_1999_2018_55+_new.png", path = "~/Desktop/cause of death/Data Slice", width = 1200, height = 500, units = "mm", dpi=3000)

saved with export option

0

There are 0 answers