You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has this issue been solved - I have code that used to work for a pie chart that will not work. I can get the geom_bar chart working but once I add the coord_polar() it breaks. Any help is appreciated.
thanks
I knocked up a quick minimal example, using airquality.
This draws with ggplot but when I go to use ggplotly, I get the error below.
airquality
ggplotly(ggplot(airquality, order = xp) +
geom_bar(aes(x = Month,
y = Temp,
fill = Solar.R)
,
position = "fill",
stat = "identity",) +
coord_polar("y")
)
Error in zero_range(to) : x must be length 1 or 2
In addition: Warning messages:
1: In min(z$x.range) : no non-missing arguments to min; returning Inf
2: In max(z$x.range) : no non-missing arguments to max; returning -Inf
3: In min(z$y.range) : no non-missing arguments to min; returning Inf
4: In max(z$y.range) : no non-missing arguments to max; returning -Inf
Reacted by Luciano Pataro, Serdar, Alex, Sixing-r, thiagorbarreto and Igor Kuivjogi Fernandes
Supporting pie charts (coord_polar) would be awesome!
Reacted by Mauro Camara Escudero, Muhammad Ichsan, Prasanna Bhogale, Matthew Wilkins, PhD, Marc-Olivier Beausoleil, emoralesve, filipmoren, pokyah and Igor Kuivjogi Fernandes
Activity
jules32 commentedon Jun 29, 2017
Hi @cpsievert, I just wanted to check in on the functionality for polar coordinates; I'm having the same error as #760.
Thank you!
nicolescoggins commentedon Aug 2, 2017
Has this issue been solved - I have code that used to work for a pie chart that will not work. I can get the geom_bar chart working but once I add the coord_polar() it breaks. Any help is appreciated.
thanks
cpsievert commentedon Aug 3, 2017
@nicolescoggins can u please provide a minimal example?
gsainsbury86 commentedon Aug 27, 2017
Hi @cpsievert ,
I knocked up a quick minimal example, using airquality.
This draws with ggplot but when I go to use ggplotly, I get the error below.
Asad55555 commentedon Dec 22, 2017
hi i'm getting the same error while using ggplotly for pie chart.
can anyone pls help?
DiDeoxy commentedon Aug 28, 2019
@cpsievert I am having the same issue as @gsainsbury86
ChrisWoodsSays commentedon Dec 26, 2019
Me too
MauroCE commentedon Dec 28, 2019
Also having the same issue, my MWE is available here and is as follows
Seyphaton commentedon Apr 1, 2020
Supporting pie charts (coord_polar) would be awesome!
fsalemi commentedon Apr 5, 2020
@rstudio Carson Sievert, Has this issue been resolved?
Thanks
ichsan2895 commentedon May 13, 2020
Seems pie chart for ggplotly doesn't support yet. Would like to see that in the future. Thanks
kmprioliPROF commentedon Jun 10, 2020
Adding my voice to the chorus...I would really like to be able to do pie / donut charts using
ggplotly()!igorkf commentedon Sep 3, 2020
I would like it too!
kylacriescologne commentedon Sep 29, 2020
Has this issue been resolved?
igorkf commentedon Sep 29, 2020
I don't think so, because issue #878 does not appear here:
https://cran.rstudio.com/web/packages/plotly/news/news.html
moutikabdessabour commentedon Oct 23, 2021
@cpsievert is there any prior art?