-
Notifications
You must be signed in to change notification settings - Fork 2.1k
add accent
argument to theme_grey, theme_minimal, etc
#6438
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
base: main
Are you sure you want to change the base?
Conversation
I think this addresses most of making accent accessibility from the built in theme functions. Do need to check on theme_void
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Gina, thank you so much for the PR! There are a few things that I think should be tweaked. One is in the comment, the other is whether you can run devtools::document()
to propagate changes from the @param
description to the .Rd
files. In other aspects this looks great!
geom = element_geom( | ||
ink = ink, paper = paper, accent = accent, | ||
linewidth = base_line_size, borderwidth = base_line_size, | ||
linetype = 1L, bordertype = 1L, | ||
family = base_family, fontsize = base_size, | ||
pointsize = (base_size / 11) * 1.5, pointshape = 19 | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this changed something in the visual test (for the better). We might have to update the snapshot for theme-void-large.svg
accordingly.
Just a comment for linking purposes, that this PR would fix #6414. |
Adding project ID
Evening up with dev ggplot2
This PR is aimed making
accent
(e.g. geom_smooth's blue) accessible from the built-in convenience theme functions liketheme_grey
,theme_minimal
etc. Most of the changes are pretty minimal, but fortheme_void
, it seems thatgeom = element_geom(...
should be added so that that the new geom dimension of theme can be manipulated fromtheme_void()