-
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
Feature request: set continuous limits for discrete scales #6259
Comments
This has been suggested before for |
Coord limits provide an effective way to precisely align axis values, especially since ggplot2 currently does not support setting limits by numerical values alone. This feature enables the alignment of plots with different axis types (continuous and discrete). Removing it would break ggalign, as the package relies heavily on it to align both discrete and continuous axes. With this capability, ggalign can generate highly complex figures, such as the one shown below: |
It probably won't be removed, precisely because it would cause a lot of breakage all over the ecosystem.
Perhaps it should be easier to set continuous limits for discrete scales. |
Thanks for the clarification.
It would be great if this could be possible. While I initially tried aligning plots using scale limits, I found it challenging to align various plots consistently and eventually, I switched to using coord limits. |
Alright I'll repurpose this issue for setting the continuous range of discrete scales then. |
coord_radial()
Thanks! This is awesome. I really appreciate it! |
is it possible to set limits in
coord_radial()
? Just like what we do incoord_cartesian(xlim = *, ylim = *)
The text was updated successfully, but these errors were encountered: