-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Make position guides customizable #3398
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
Merged
paleolimbot
merged 31 commits into
tidyverse:master
from
paleolimbot:issue-3322-pos-guide-cust
Sep 29, 2019
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
1d788aa
add default position guide = waiver() for all position scale construc…
paleolimbot 422fcd3
add guide option to sec axis
paleolimbot 1d4daf0
add a guide_axis constructor
paleolimbot 4a7e54e
add guide none and finish adding guide axis
paleolimbot 0496e55
add methods to get guides, layers, and mapping into the coords
paleolimbot 0c0c01a
guide_axis() objects mostly work with coord_cartesian()
paleolimbot 8215477
fix breaks that are outside the scale limits
paleolimbot d6c35c7
fix second axes
paleolimbot 1f092f2
fix new axis guides with coord_flip()
paleolimbot 1281280
this PR uses a different method to calculate the positions of ticks (…
paleolimbot c0bc334
pass on customizations to the draw method, add tests
paleolimbot 6244983
fix specification of guides in guides(), warn if guide might be in an…
paleolimbot 50ef6f5
make guide_transform() generic
paleolimbot 2b2f4fb
add ability for (in theory) multiple axes to be drawn at one panel lo…
paleolimbot 4a45706
issue a warning when more than one guide exists for one panel location
paleolimbot f91a546
ensure that user-facing messages refer to "position guides"
paleolimbot 7c435ae
rename guides_grob to make it more specific
paleolimbot e9358ed
add ability for guides to have titles
paleolimbot 8942c56
fix title parameter documentation for position guides
paleolimbot e060347
remove unused method
paleolimbot b05111a
implement hadley's review suggestions
paleolimbot 5e5d748
clarify position guide resolving code
paleolimbot 2d040c7
fix guide_none() with non-position scales
paleolimbot b52fa59
rename n_dodge to n.dodge
paleolimbot 2ef4fe1
remove "none" guides before calculating grobs
paleolimbot f11609a
fix multiple guide logic and warning
paleolimbot b738de5
ensure guide_legend fails properly when used with position scales
paleolimbot 0cc850e
fix axis plural
paleolimbot 92e16ae
add comment reminding to use find_global() when guides are officially…
paleolimbot f930075
add NEWS bullet
paleolimbot 6448aa0
Merge branch 'master' into issue-3322-pos-guide-cust
paleolimbot 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Shouldn't all these helpers below be placed in
coord-.r
they seem global to all coords?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.
Right now
ViewScale
s andguide_axis()
are only used byCoordCartesian
. I think the code could get used in all theCoord
s eventually, but they aren't used anywhere else yet. I could still easily move them tocoord-.r
if that's the best place for them.