-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Arbitrary positions for guides (#5488)
* Add legends in all positions * Assemble separate guide boxes * Add position argument to guides * reoxygenate * adapt tests * deal with old R units * rename manual position to "inside" * resolve spacing once * omit 'inside' option in justification * Move more responsibility to `Guides$draw()` * Propagate "manual" -> "inside" rename * Fallback for inside position * Rearrange methods into logical order * remove vestigial stuff * Separate numeric inside positioning from `legend.position` argument * Implement plot-wise justification (#4020) * Partially revert bd917cf * Add extra justification theme settings * Document `legend.justification.{position}` * Apply justification * Prevent FP warnings by partial matching * Switch to new inside position * Add test for justification per position * Fix subsetting bug * always add gtable rows/cols * adjust table dimension expectations * adapt test * Don't calculate key sizes twice * Use `calc_element()` * Use conventional indexing * prevent partial matching * Move justification responsiblity to `Guides$package_box()` * Fix bug * incorporate guide_custom * incorporate guide_custom
- Loading branch information
Showing
18 changed files
with
554 additions
and
166 deletions.
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
Oops, something went wrong.