-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Feature request: Allow expanding only horizontally or vertically in coords_cartesian
#3513
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
Comments
Could you please do a search for this topic among recent open and closed issues, and link back here to what you find? There have definitely been discussions of this topic, but I don't remember the latest status. |
I had searched for Through this search I found that I can use |
According to the discussion in #3270, expansion in coords can be controlled via the scale functions. In general, I believe the ggplot2 philosophy has been to set axis-specific properties via scale functions rather than via coord(*), to avoid overly complicated interfaces in coords. Is there anything you cannot currently do (i.e., a true missing feature), or are you only asking for a convenience change to the API? (*) The same is true for brakes, labels, axis titles, etc. Those properties are all set via scale functions, not via coords. |
No feature is missing, afaict. It's just confusing when you can set some aspects of expansion with |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
The function
coords_cartesian
has a parameter calledexpand
that allows us to expand the x- and y-limits around the data a bit. Possible values areTRUE
for expanding andFALSE
for not expanding. I encountered multiple cases were it would have been useful to be able to expand just in the x- or y-dimension. Please consider adding these options. Thank you.The text was updated successfully, but these errors were encountered: