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

error when setting breaks and labels to NULL in coord_radial() #6258

Open
Yunuuuu opened this issue Dec 21, 2024 · 0 comments
Open

error when setting breaks and labels to NULL in coord_radial() #6258

Yunuuuu opened this issue Dec 21, 2024 · 0 comments

Comments

@Yunuuuu
Copy link
Contributor

Yunuuuu commented Dec 21, 2024

library(ggplot2)
pie <- ggplot(mtcars, aes(x = factor(cyl), fill = factor(cyl))) +
    geom_bar(width = 1)
pie + coord_radial(theta = "x", inner.radius = 0.5) +
    scale_x_discrete(breaks = NULL, labels = NULL)
#> Error in switch(params$position, theta.sec = -Inf, top = -Inf, right = -Inf, : EXPR must be a length 1 vector

Created on 2024-12-22 with reprex v2.1.0
~

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

No branches or pull requests

1 participant