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

feat: Use ggplot2::fill_alpha() for adjusting fill alphas #327

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

trevorld
Copy link

  • Bumps required {ggplot2} to v3.5.0 when fill_alpha() was introduced.
  • Replace each fill = alpha(fill, alpha) with fill = fill_alpha(fill, alpha).

closes #323

@trevorld
Copy link
Author

     # Lets make some data
     circles <- data.frame(
       x0 = rep(1:3, 3),
       y0 = rep(1:3, each = 3),
       r = seq(0.1, 1, length.out = 9)
     )
     
     # Behold some circles
     ggplot() +
       geom_circle(aes(x0 = x0, y0 = y0, r = r), fill=grid::radialGradient(rainbow(9)), data = circles)

image

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.

Support grid::pattern() / gradient fills
1 participant