-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Geom aesthetics based on theme #5833
Merged
Merged
Changes from 29 commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
08300bd
draft new `geom` element in themes
teunbrand 8c24ab9
plumbing for providing theme to Geom$use_defaults()
teunbrand 60af7a3
make `from_theme()` as eval helper
teunbrand f551c8b
Evaluate default aesthetics from theme
teunbrand ced8c15
allow user-specified `from_theme()`
teunbrand 659fd09
plumbing for guides to observe theme
teunbrand 2cec833
reoxygenate
teunbrand 5637501
Add text settings
teunbrand 2d28202
Add text settings
teunbrand 5f2ebf9
accept minor fontsize difference (11.04pt -> 11.00pt)
teunbrand 87af93e
Merge branch 'theme_geom_defaults' of https://github.com/teunbrand/gg…
teunbrand f503409
temporarily disable `sf_grob()` default lookups
teunbrand f08fcb6
temporary shim for colour mixing
teunbrand b5ffd32
Get all `colour`/`fill`/`linewidth` from theme
teunbrand 93a9258
test theme has `geom` element
teunbrand 5e9136f
adapt tests
teunbrand 962004e
resolve merge conflict
teunbrand 6185e82
`geom_sf()` has themed defaults
teunbrand df571c0
we don't expect complete themes anymore
teunbrand 92d2bbb
shim auto-replaces itself when exported from scales
teunbrand 124dd5f
theme defaults for point size/shape
teunbrand 0ff6078
boxplot point shape/size default from `GeomBoxplot$default_aes`
teunbrand 2dd3f37
accept larger points in large theme snapshots
teunbrand 377a82c
document
teunbrand e584978
Point to theme setting in `update_geom_defaults()`
teunbrand 1143a9f
document `from_theme()`
teunbrand afca781
add news bullet
teunbrand f0b4279
Update R/geom-pointrange.R
teunbrand b0251f3
Run revdepcheck
thomasp85 0a99ec7
resolve merge conflict
teunbrand d41758f
implement @yutannihilation's suggestion
teunbrand ddfba94
resolve merge conflict
teunbrand 99a3b58
run revdepcheck
thomasp85 6741230
Merge branch 'main' into theme_geom_defaults
teunbrand 7762341
resolve merge conflict
teunbrand dbea0a6
revdepcheck once again
thomasp85 789ec08
protect against missing `theme`
teunbrand 0d682f1
skip empty sf layers
teunbrand e6afd5c
getter for geom defaults
teunbrand 6a08f2d
add test
teunbrand f87e548
Merge branch 'main' into theme_geom_defaults
teunbrand f1fae8e
tmp
teunbrand b73f1d2
add `linetype` to `element_geom()`
teunbrand c511902
`geom_path()` treats integer `1L` as solid (in addition to numeric `1`)
teunbrand 7ffab68
get linetype from theme
teunbrand 43037b5
Merge branch 'theme_geom_defaults' of https://github.com/teunbrand/gg…
teunbrand e728d19
Merge branch 'main' into theme_geom_defaults
teunbrand e718db1
Merge branch 'main' into theme_geom_defaults
teunbrand b571625
Merge branch 'main' into theme_geom_defaults
teunbrand ee54458
swap thin/thick for linewidth/borderwidth and distinguish linetype an…
teunbrand a9f259e
disseminate new params
teunbrand 52fc7b7
point stroke counts as border
teunbrand 0b8ac05
Merge branch 'theme_geom_defaults' of https://github.com/teunbrand/gg…
teunbrand ee60f6d
redocument
teunbrand 77ef62c
Fix example
teunbrand e689e08
deduplicate argument documentation
teunbrand File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can you remind me again why we can
NULL
ify these?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.
Eventually
pch = outlier.shape %||% data$shape
wheredata$shape
has been filled fromGeomBoxplot$default_aes
. Not setting these toNULL
would then block the theme-inherited aesthetics from reaching the points. The logic is the same foroutlier.size
.