-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ggplotly stopped working with version 3.5.1 #5892
Comments
Can confirm this issue. Here's a reproducible example:
p2 above (which includes a legend) yields the error below, which calls out an issue with the "labels" item of the ggplot object as an unused argument.
sessionInfo:
This error does not occur with ggplot2-3.4.4 |
I confirmed the error is reproducible with this a bit outdated version. Could you try updating it to 4.10.4, the latest CRAN version? |
Can confirm that this works as intended with plotly 4.10.4. As there isn't anything to fix on either ggplot2's side or plotly's side, I'm going ahead and close this issue. |
I have encountered an issue with the current version of ggplot2 (3.5.1) when integrating with the plotly package via the ggplotly function. The provided code should generate a Plotly plot without any errors.
When running the code without an aes() component that generates legend elements (such as color or fill), the plot is created without issues. However, including an aesthetic component that generates a legend (e.g., fill) results in the following error:
Error in train(..., self = self) :
unused argument (list("time", "total_bill", "time"))
This issue appears to be specific to the interaction between ggplot2 and plotly, particularly when using aesthetics that produce legends. In previous versions of ggplot2 this error did not occur. Any insights or resolutions for this problem would be highly appreciated
The text was updated successfully, but these errors were encountered: