-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Could the x and y axis position move when coord_radial
is used?
#5735
Comments
It is a little bit more complicated than just moving the axis. library(ggplot2)
mpg |>
ggplot() +
geom_boxplot(aes(x = class, y = displ)) +
coord_radial(start = 0.25 * pi, end = 0.75 * pi, r_axis_inside = FALSE) Also if you have a bottom-half circle, the position would be on the right visually even though it is the primary axis. mpg |>
ggplot() +
geom_boxplot(aes(x = class, y = displ)) +
coord_radial(start = 0.5 * pi, end = 1.5 * pi) If you must have a guide on the right, you can use the mpg |>
ggplot() +
geom_boxplot(aes(x = class, y = displ)) +
coord_radial() +
guides(r = "none", r.sec = "axis") Created on 2024-03-04 with reprex v2.1.0 |
It works for An idea is to just switch by 180 degrees where-ever the axis was, if someone uses position = "right" or "top"? That would make sense when it was a full or half pie, which would cover off most situations. Feel free to close |
There is something to say for this from a consistency standpoint. However, I don't think it makes sense to use a flipping mechanism for the theta axis: that would only work if |
Currently only the y axis title moves
Created on 2024-03-02 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: