Skip to content

Why you should prefer Cairo's png engine; visual proof.

Notifications You must be signed in to change notification settings

DiabbZegpi/ggsave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
Apr 19, 2020
Apr 19, 2020
Apr 19, 2020

Repository files navigation

ggsave

Why you should prefer Cairo's png engine; visual proof.

In the past, copying plots from RStudio Plots pane to some document was a pain in the ass, having to deal with horrible graphics quality. I thought that problem was caused by my RStudio version, some issue with my pc or even by Windows. Turns out it's a mix, because RStudio's default PNG engine for Windows produces ugly plots.

Here's what I mean

ggsave(filename = "images/iris_default.png", plot = p,
       height = 5, width = 7, units = "in", dpi = 500)

ggsave(filename = "images/iris_default.png", plot = q,
       height = 5, width = 7, units = "in", dpi = 500, type = "cairo")

About

Why you should prefer Cairo's png engine; visual proof.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages