Skip to content

coord_radial incompatible with ggtext::element_markdown #6803

@leandraza

Description

@leandraza

Hi,
it seems like coord_radial() is incompatible with ggtext::element_markdown, see this minimal example, which produces the error
"Error in elements$text@angle :
no applicable method for @ applied to an object of class "element_markdown"

df <- data.frame(
  x = month.abb[1:6],
  y = 1:6
)

ggplot(df, aes(x, y)) +
  geom_col() +
  coord_radial() +
  theme(axis.text.x = element_markdown(color = "red"))

Package versions used are 0.1.2 (ggtext) and 4.0.2 (ggplot2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions