Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

coord_radial: add xlim and ylim arguments #6359

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Yunuuuu
Copy link
Contributor

@Yunuuuu Yunuuuu commented Mar 12, 2025

Partial of #6259 (The feature request has been changed from set limits for coord_radial()).

Since coord_polar() does not have an expand argument, I have not implemented this for coord_polar().

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

image

ggplot(mtcars, aes(disp, mpg)) +
        geom_point() +
        coord_radial(
            start = -0.4 * pi,
            end = 0.4 * pi, inner.radius = 0.3,
            xlim = c(200, 300),
            ylim = c(15, 30),
            clip = "on"
        )

image

@teunbrand
Copy link
Collaborator

Thanks for the PR! For reasons mentioned in #6259 (comment), I oppose this proposal, so I'll leave the task of approving this PR to other maintainers.

@Yunuuuu
Copy link
Contributor Author

Yunuuuu commented Mar 14, 2025

Thanks for your feedback! I understand your concerns and will leave this open for further review by other maintainers.

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.

2 participants