-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Panel Grid Aesthetics Can't be Changed for theme_classic #1555
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
Since panel.grid.major.y inherits from panel.grid.major while the later has an element_blank class, it will not inherit the desired element_line. This can easily be confirmed via
This will happen whenever a new element inherits from a element that was declared blank in the base theme. For instance, adding tick marks only on x with theme_minimal also fails:
It seems these might actually not work in only three cases in which case I would suggest just updating the two themes, classic and minimal, by declaring the problem children.
|
@Katiedaisey would you be interested in doing a PR to make those changes? I'd really appreciate it. |
@hadley Sure. Just let me check those are indeed the only conflicts and I'll send you one tomorrow. |
addresses issue tidyverse#1555 - elements added in new theme inherit "element_blank"
The default axis tick lengths changed, leading to lots of extra whitespace around the graph. "Panel Grid Aesthetics Can't be Changed for theme_classic" tidyverse/ggplot2#1555
It has no effect for
theme_classic
but it does work for the other themes
It also doesn't work for the grid lines perpendicular to the x-axis.
The text was updated successfully, but these errors were encountered: