-
Notifications
You must be signed in to change notification settings - Fork 106
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
Should alpha()
support patterned fills?
#367
Comments
Is this still needed in your current ggplot2 PR for pattern fills? |
No, this issue should be fixed by tidyverse/ggplot2#5299 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since R 4.2.0, the {grid} package has supported vectorised patterns. A simplified example from the link, with a list of patterns, is the code below:
Created on 2022-10-30 by the reprex package (v2.0.1)
Let's say we might want to try to adopt this in ggplot2, like so:
As can be seen above, we currently can't use this in ggplot2. I think the only thing currently prohibiting this is the
alpha()
function that can't handle a list of patterns as input.If I change the
alpha()
function to be like this (real solution should probably be more elegant):And build the package and re-load ggplot2 (which doesn't lend itself well to reprexes), I can get exactly what I might have expected:
The text was updated successfully, but these errors were encountered: