Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add_aagi_logo() doesn't get it in the upper left corner #3

Open
adamhsparks opened this issue May 7, 2024 · 0 comments
Open

add_aagi_logo() doesn't get it in the upper left corner #3

adamhsparks opened this issue May 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@adamhsparks
Copy link
Member

Logo is upper left but appears inside the figure not outside as it should.

library(theme.aagi)
library("ggplot2")

p1 <- ggplot(mtcars) +
  geom_point(aes(
    x = wt,
    y = mpg,
    colour = factor(gear)
   )) +
  facet_wrap(~ am) +
  theme_aagi()

ggsave(p1, filename = "AAGI.png", path = tempdir())

add_aagi_logo(file_in = file.path(tempdir(), "AAGI.png"),
               file_out = file.path(tempdir(), "AAGI_logo.png"))

x <- magick::image_read(file.path(tempdir(), "AAGI_logo.png"))
print(x)
@adamhsparks adamhsparks added the bug Something isn't working label May 7, 2024
@adamhsparks adamhsparks self-assigned this May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant