Skip to content

Coord radial panel margins #6401

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

# for free to join this conversation on GitHub. Already have an account? # 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