USAID-OHA-SI / glitr

SI graphics package to adorn your ggplots
https://usaid-oha-si.github.io/glitr/
Other
27 stars 4 forks source link

Testing output for AI #52

Open achafetz opened 3 years ago

achafetz commented 3 years ago

Over the summer we noticed some issues when exporting out glitr graphics to Adobe Illustrator. Known issues have included

A few issues could be contributing

We need to do some research into best practices on workflows when exporting graphics from R to some robust testing to AI, but also some robust testing to figure out where the issue is arising.

Suggested base plot for testing export to AI

library(sessioninfo)
library(tidyverse)
library(palmerpenguins)
library(glitr)
library(extrafont)
library(glue)

#print session info
platform_info()
package_info()

#Base plot
penguins %>% 
  ggplot(aes(flipper_length_mm, bill_length_mm, color = species)) +
  geom_point() +
  labs(x = "Flipper Length (mm)",
       y = "Bill Length (mm)",
       title = "BASE PLOT",
       subtitle = "An informative subtitle",
       caption = "Horst AM, Hill AP, Gorman KB (2020). palmerpenguins: Palmer Archipelago (Antarctica) penguin data.")