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

Export alpha argument in element_rect() #6260

Open
Yunuuuu opened this issue Dec 21, 2024 · 1 comment
Open

Export alpha argument in element_rect() #6260

Yunuuuu opened this issue Dec 21, 2024 · 1 comment

Comments

@Yunuuuu
Copy link
Contributor

Yunuuuu commented Dec 21, 2024

I would like to request the addition of an alpha argument to the element_rect() function in ggplot2. Adding an alpha argument to element_rect() would make it easier for users to adjust the transparency of rectangular elements without needing to manually calling ggplot2::alpha() or ggplot2::fill_alpha()

@teunbrand
Copy link
Collaborator

For some more context: #6249 (comment)

I don't have any strong opinion on whether this should be exposed, but if we do it for element_rect(), we should do it for all elements.

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

No branches or pull requests

2 participants