Skip to content

Coord radial panel margins#6401

Open
Yunuuuu wants to merge 2 commits into
tidyverse:mainfrom
Yunuuuu:coord_radial_panel_margins
Open

Coord radial panel margins#6401
Yunuuuu wants to merge 2 commits into
tidyverse:mainfrom
Yunuuuu:coord_radial_panel_margins

Conversation

@Yunuuuu

@Yunuuuu Yunuuuu commented Apr 7, 2025

Copy link
Copy Markdown

Fix #6379

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

@Yunuuuu

Yunuuuu commented Apr 7, 2025

Copy link
Copy Markdown
Author
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

Yunuuuu commented Apr 7, 2025

Copy link
Copy Markdown
Author

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