Open mevers opened 4 years ago
Can you report this for ggplot2 also (linking to this issue)? It's almost certainly a problem in how ggplot2 renders axes for polar coordinates.
@clauswilke Done. Here is the ggplot2
issue.
It's been determined that this is a ggtext issue that needs fixing.
Hi, I've encountered this problem. Is there a solution?
Hi, are there any updates on this? I'm not very savvy on gg
-world, but I'd gladly try and come up with a fix if someone points me in the right direction. Seems like the ggplot
people suspect this is caused by draw_axis not being able to handle an NA argument with #element_markdown, any clue on how to tackle that in this side? Thanks anyway!
I guess this completely dropped off the radar. I thought we had fixed this.
I don't have a lot of capacity for ggtext development right now. If anybody wants to dig a bit deeper and try to figure out where the problem is I'm happy to assist/give advice. The problem is ggplot sends NA
s to element_markdown()
and (I believe) ggtext tries to format and then render those rather than ignore them.
Using
theme(axis.text.x = element_markdown())
withcoord_polar
causes an error (but still correctly draws the plot):Minimal & reproducible example:
This issue seems to be related to the polar coordinates, as removing
coord_polar
gets rid of the error