Skip to content

hjust = "outward" not working for some angles #4169

Closed
@bersbersbers

Description

@bersbersbers

In the following code, the label "Annotation0" is not adjusted "outwards", while the other two are.

library(ggplot2)
print(ggplot(data.frame(x = c(0, 1, 2))) +
  geom_text(aes(
    x = x,
    y = 1,
    label = paste0("Annotation", x),
    angle = x * 60 - 90, 
    hjust = "outward"
    )) + 
  coord_polar() +
  scale_x_continuous(limits = c(0, 3))
)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorlayers 📈

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions