Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Retina option for ggsave #2156
Comments
karawoo
added the
feature
label
Jun 14, 2017
|
Perhaps it would be best to generalise to support "print", "screen", and "retina" ? |
|
Sounds good to me, I had to experiment with this figure when I first started with ggplot to find a DPI I was satisfied with. This option would help save some time. I could have a go at implementing this. I'm thinking Retina is a little trickier though since it's supposed to be a resolution at which the eye cannot distinguish the individual pixels, which is dependent on viewing distance and physical screen size. The wiki article suggests 300 PPI was the initial figure for a handheld device, with the latest iPhones having 401 PPI (the highest on the list) and larger displays ~220 PPI. Would it make sense to go with the highest PPI (401)? |
|
I think just doubling the dpi is standard. |
|
I agree with Hadley: the practical answer for retina is to double the available PPI ( One thing to consider is that some phones are at triple the pixel density (e.g., iPhone 6 Plus). Not sure if that warrants having "retina-2" and "retina-3". Maybe an extra "retina-plus" option? (Though the 8 is rumored to be at 3x, too.) |
|
Thanks for the links, @dylan-stark they were helpful. If I'm understanding it correctly, it seems there should be 2 changes to implement this feature then:
Compared to the gist linked, |
|
I think we just need more string options for dpi: screen, retina, and print. |
foo-bar-baz-qux
added a commit
to foo-bar-baz-qux/ggplot2
that referenced
this issue
Jul 23, 2017
|
|
foo-bar-baz-qux |
3d79101
|
foo-bar-baz-qux
referenced
this issue
Jul 23, 2017
Merged
Add string options for `ggsave()` (#2156) #2217
foo-bar-baz-qux
added a commit
to foo-bar-baz-qux/ggplot2
that referenced
this issue
Jul 30, 2017
|
|
foo-bar-baz-qux |
9a9733d
|
foo-bar-baz-qux
added a commit
to foo-bar-baz-qux/ggplot2
that referenced
this issue
Aug 1, 2017
|
|
foo-bar-baz-qux |
bd3c937
|
hadley commentedJun 13, 2017
It would be useful to have an option to
ggsave()that made it easy to produce retina quality graphics. This might be as simple as supportingdpi = "retina".