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

plotly does not work with coord_radial #2430

Open
nc011 opened this issue Mar 5, 2025 · 1 comment
Open

plotly does not work with coord_radial #2430

nc011 opened this issue Mar 5, 2025 · 1 comment

Comments

@nc011
Copy link

nc011 commented Mar 5, 2025

Released last year, coord_radial is the "new" way of producing polar plots in ggplot.

Unfortunately, we cannot use ggplotly with this method.

Example:

 p <- ggplot(mpg, aes(displ, hwy)) +
  geom_point() +
coord_radial(inner.radius = 0.3)

ggplotly(p)

results in:

Error in rng[[xy]]$get_labels() : attempt to apply non-function
In addition: Warning messages:
1: In min(z[["x"]]$dimension %()% z$x.range %||% z$x_range) :
no non-missing arguments to min; returning Inf
2: In max(z[["x"]]$dimension %()% z$x.range %||% z$x_range) :
no non-missing arguments to max; returning -Inf
3: In min(z[["y"]]$dimension %()% z$y.range %||% z$y_range) :
no non-missing arguments to min; returning Inf
4: In max(z[["y"]]$dimension %()% z$y.range %||% z$y_range) :
no non-missing arguments to max; returning -Inf

I assume this is linked to #878 but wanted to flag in case it's a separate issue.

@romanzenka
Copy link

Thanks for flagging this, from the outside it looks like it might be tricky to implement, but good to be aware.

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