Skip to content

Conversation

Yunuuuu
Copy link
Contributor

@Yunuuuu Yunuuuu commented Apr 7, 2025

Fix #6379

This PR provides panel.margin argument to control the spacing between CoordRatial panel and axis

@Yunuuuu
Copy link
Contributor Author

Yunuuuu commented Apr 7, 2025

ggplot(mtcars, aes(disp, mpg)) +
  geom_point() +
  coord_radial(
    start = -0.4 * pi,
    end = 0.4 * pi
  )

image

ggplot(mtcars, aes(disp, mpg)) +
  geom_point() +
  coord_radial(
    start = -0.4 * pi,
    end = 0.4 * pi,
    panel.margin = unit(0, "mm")
  )

image

@Yunuuuu
Copy link
Contributor Author

Yunuuuu commented Apr 7, 2025

It seems it's easier to implement outer.radius instead of this spacing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: expose outer.radius in coord_radial()

1 participant