-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Error with Ribbon Aesthetic in ggplot2 when Using xmin/xmax with Gradient Fill #6357
Comments
Thanks for the report! I can reproduce the issue.
Would you like to try your hand at a first pull request as well?
The default Windows device isn't recommended and, as far as I know, not really maintained to support more modern features. I'd like to suggest to switch to the ragg png device or else the cairo png device. |
Thanks ! I would love to try. In which branch should I push? |
After you've made a fork, you can start a new branch from the main branch (you can name it 'fix_6357' for example), make the edits, and lastly open up a PR. |
Description:
I have encountered an error when using the ribbon aesthetic with gradient fill in ggplot2. The issue appears to have been introduced by the Gradients in ribbons(#5699) pull request. When combining the use of
xmin
/xmax
aesthetics with gradient fill, the error suggests a typo at line 186 ofgeom-ribbon.R
(likely "tranformed" instead of "transformed"). Removing the typo fixes the issue.Additionally, on Windows, check_device("gradients", action = "abort", maybe = TRUE) does not work correctly within the default RStudio graphics device (RStudioGD), and the underlyed png support.
Steps to Reproduce:
Run the following code in R:
Observed Error:
Expected Behavior:
The code should render a ribbon with a gradient fill without any errors.
R : 4.2.2 (not the most recent)
ggplot2 : 3.5.1.9000
This is my first bug report, so I appreciate any feedback or guidance on further redaction or necessary details.
The text was updated successfully, but these errors were encountered: