coord_polar
causes error with ggtext::element_markdown
#4080
Closed
Description
opened on Jun 22, 2020
Originally reported as a ggtext
issue here I was advised by @clauswilke to flag this here as well.
Using coord_polar
with ggtext::element_markdown
to theme x-axis labels causes an error
Error in grid.Call.graphics(C_setviewport, vp, TRUE) :
non-finite location and/or size for viewport
with the plot still drawn correctly.
A minimal & reproducible example:
df <- data.frame(name = sprintf("**%s**", LETTERS[1:4]), value = 1:4)
library(ggplot2)
library(ggtext)
ggplot(df, aes(name, value)) +
geom_point() +
coord_polar() +
theme(axis.text.x = element_markdown())
Removing coord_polar
gets rid of the error.
Metadata
Assignees
Labels
No labels
Activity