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

Support ink and paper #209

Merged
merged 4 commits into from
Sep 5, 2024
Merged

Support ink and paper #209

merged 4 commits into from
Sep 5, 2024

Conversation

yutannihilation
Copy link
Owner

devtools::load_all("~/GitHub/gghighlight/")
#> ℹ Loading gghighlight
#> Loading required package: ggplot2

do_plot <- function(ink = "black", paper = "white") {
  p <- ggplot(mtcars, aes(wt, mpg)) + 
    geom_point(size = 10) +
    theme(
      geom = element_geom(ink = ink, paper = paper),
      plot.background = element_rect(fill = paper),
      panel.background = element_rect(fill = paper)
    ) +
    gghighlight(mpg < 25)
}

print(do_plot())

print(do_plot("purple"))

print(do_plot("white", "black"))

Created on 2024-09-06 with reprex v2.1.1

@yutannihilation yutannihilation merged commit f3754b9 into main Sep 5, 2024
@yutannihilation yutannihilation deleted the support-ink-and-paper branch September 5, 2024 16:32
@yutannihilation
Copy link
Owner Author

yutannihilation commented Sep 5, 2024

Thinking this again, probably,

  • ink should be greyed
  • paper's colour should be kept

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant