-
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
Natively Cap the Axis Lines, as featured on the lemon package (feature) #4907
Comments
I'll be sounding like a broken record, but once guides have been rewritten we will certainly look into something like this |
I've written something similar before, so it wouldn't be much of a bother to slap onto #4879 if the ggplot team agrees. |
absolutely - I've been wanting to make something like this forever. I just think it makes most sense after you've rewritten the guide system 😉 |
So, for the difficult bit: what should be the name of this axis guide? Here is an incomplete list of suggestions:
|
Does it make sense to introduce an entire separate axis guide for this purpose? Isn't the only difference to the regular guides that the axis line gets truncated? If I'm seeing this correctly, I'd suggest to implement only one guide function and make the axis line truncation just an argument of that guide. |
That would work too. Also in that case, what should the argument name be? |
I would suggest to implement it first and then think about this. It's not immediately clear to me that anything other than |
I know this is merged, but I wanted to point out that the option to switch guides from complete to truncated should be supported as a theme element / option as well. I have been waiting for this feature and have used various workarounds, but I realized recently working on a large project where I needed to change a lot of aesthetics across a large number of plots, the ability to reformat as much as possible via theme application is very useful. I hope that the default guide could be complete, specified in the theme, with the option to truncate being available as a guide option or by changing the theme default. |
---- Feature Request: Natively Cap the Axis Lines ----
It would be amazing to have the option to cap the axis lines, such as featured on the
lemon
package. Thelemon
package, however, requires to remove the ggplot2 default axis lines so that new ones can be drawn:Therefore, it would be nice being able to cap the axis lines natively (without getting rid of the original axis lines).
Please find below a reprex of an example chart with capped axis lines:
The text was updated successfully, but these errors were encountered: