-
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
Make position guides customizable #3398
Make position guides customizable #3398
Conversation
…tors, exclude position guides from the general guide building code
…coord$transform() vs. arbitrarily rescaling using the limits)
… inappropriate position
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 looks good. I'd say take another pass at clarifying anything that's confusing now that you've had a break from it, and lets get a review from @thomasp85.
I re-took a look through and I don't see anything that doesn't make sense to me. Initially I was worried that organizing the guides a named list where the names are aesthetics would be slow, but I did some profiling and that doesn't seem to matter. After rereading the code, I think From the brief benchmarking I did, I found that this PR slows down building because it adds two calls per panel to
|
Some more benchmarking suggests that I'm wrong about S3 dispatch and |
@@ -153,10 +214,41 @@ view_scales_from_scale <- function(scale, coord_limits = NULL, expand = TRUE) { | |||
view_scales | |||
} | |||
|
|||
draw_view_scale_axis <- function(view_scale, axis_position, theme) { | |||
if(is.null(view_scale) || view_scale$is_empty()) { | |||
panel_guide_label <- function(guides, position, default_label) { |
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 and guide_axis()
are only used by CoordCartesian
. I think the code could get used in all the Coord
s eventually, but they aren't used anywhere else yet. I could still easily move them to coord-.r
if that's the best place for them.
Thanks @thomasp85 for the super thorough review of this! To your questions:
I think I've addressed your comments, but let me know if you'd like a different approach or if I forgot a comment! |
There will be facilities for fast text-box dimension calculation down the line without going into C++ so we should be able to get this into ggplot2 proper at some point (not needed for this PR though) Do you have an overview of which packages this will affect? If we could reach out to them as soon as possible we can make sure they are ready for the next release |
I think, with the one minor remaining change request, that we should merge this in and begin bracing for impact 🙂 It is better to get a lot of hands on this before we make a release... any objections @hadley ? |
The only subclass of a position scale I know about is I think more so than subclasses, extension packages that do things with the built and rendered ggplot2 objects are likely to break (I'm thinking of plotly here, which broke as a result of a previous PR I did). |
When you've added a NEWS item you are free to merge... then we'll begin working through any possible consequences |
@paleolimbot after this merge some code that used to work is failing removing the faceting works but why now facet with free_x is not ? the breaks and labels have the same length library(ggplot2)
ggplot(mtcars,aes(mpg ,disp)) +
geom_point()+
facet_grid(~cyl,scales="free_x")+
scale_x_continuous(breaks=c(10,15,20,21,25,30),
labels=c("10","15","20","21","25","30") )
#> Error: Breaks and labels are different lengths
ggplot(mtcars,aes(mpg ,disp)) +
geom_point()+
scale_x_continuous(breaks=c(10,15,20,21,25,30),
labels=c("10","15","20","21","25","30") ) Created on 2019-10-07 by the reprex package (v0.3.0) |
@smouksassi Could you file a separate issue please? I can confirm this problem. |
FWIW, we are aware of it as it has cropped up in revdepchecks. @paleolimbot is working through these right now |
@clauswilke let me know if we still need to open a new issue it seems it is already taken care of? |
I think it never hurts to have an explicit issue of a known problem. @paleolimbot can close it when he submits his fix. |
commit b049018 Merge: e1846bc ccf0ee5 Author: Thomas Knecht <[email protected]> Date: Mon Oct 7 12:29:23 2019 +0200 Resolve conflict Merge branch 'Add_position_nudgestack' of https://github.com/ThomasKnecht/ggplot2 into Add_position_nudgestack # Conflicts: # R/position-nudgestack.R commit e1846bc Author: Thomas Knecht <[email protected]> Date: Mon Oct 7 11:58:47 2019 +0200 Add package spezifications commit 5de0449 Author: Thomas Knecht <[email protected]> Date: Mon Oct 7 11:53:06 2019 +0200 Add package spezifications commit d9ec752 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:20:41 2019 +0200 Style file commit e0368b0 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 08:51:55 2019 +0200 Resolve conflict commit 325456a Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit 3210061 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 15:39:56 2019 +0200 Add the zoo-package to Suggestions commit 739ac7c Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 15:55:02 2019 +0200 Add tests for correct nudging and stacking commit 662a5da Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:12 2019 +0200 Add validated svg for position_nudgestack commit 598b786 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:29 2019 +0200 Add test file with a doppelganger-test commit 90d1257 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:47:58 2019 +0200 Add time series example commit 415811c Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:44:37 2019 +0200 Add news commit 6e4398c Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:20:41 2019 +0200 Style file commit b61211d Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:20:41 2019 +0200 Style file commit 369a34b Author: Thomas Knecht <[email protected]> Date: Mon Sep 30 14:06:24 2019 +0200 Use tsbox for converting ts object to tibble commit e4e7ee0 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 08:51:55 2019 +0200 Resolve conflict commit 4d66dad Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 15:55:02 2019 +0200 Add tests for correct nudging and stacking commit 1b61750 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:29 2019 +0200 Add test file with a doppelganger-test commit 65e72fb Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit e5d61b5 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:06:00 2019 +0200 Adjust filter criterion in examples commit 8848fd9 Author: Thomas Knecht <[email protected]> Date: Mon Sep 30 14:06:24 2019 +0200 Use tsbox for converting ts object to tibble commit 28640d5 Author: Thomas Knecht <[email protected]> Date: Fri Sep 27 15:58:51 2019 +0200 Bugfix commit 59bc2a0 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:00:28 2019 +0200 Add position-nudgestack.R into man commit 71d567b Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:47:58 2019 +0200 Add time series example commit 3a1c71f Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 15:55:02 2019 +0200 Add tests for correct nudging and stacking commit f26bb90 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:12 2019 +0200 Add validated svg for position_nudgestack commit 3ba06ab Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:29 2019 +0200 Add test file with a doppelganger-test commit fbf28dc Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit 5270a9d Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:20 2019 +0200 Delete packages from @examples commit 32d2203 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:06:00 2019 +0200 Adjust filter criterion in examples commit fc6ba5a Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 15:39:56 2019 +0200 Add the zoo-package to Suggestions commit b1bb9d1 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:00:28 2019 +0200 Add position-nudgestack.R into man commit d1c7ad8 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:58:38 2019 +0200 Add new position_nudgestack into NAMESPACE commit 621730d Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:56:35 2019 +0200 Add new position to DESCRIPTION commit 0750e55 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:47:58 2019 +0200 Add time series example commit ce942ac Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:26:32 2019 +0200 Delete emtpy rows commit 86dfea0 Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:09:06 2019 +0200 Add position_nudgestack commit ccf0ee5 Author: Thomas Knecht <[email protected]> Date: Mon Oct 7 11:58:47 2019 +0200 Add package spezifications commit 831d569 Author: Thomas Knecht <[email protected]> Date: Mon Oct 7 11:53:06 2019 +0200 Add package spezifications commit af4abb5 Merge: 0a89016 0ff81cb Author: Thomas Knecht <[email protected]> Date: Wed Oct 2 16:37:11 2019 +0200 Resolve conflict Merge branch 'Add_position_nudgestack' of https://github.com/ThomasKnecht/ggplot2 into Add_position_nudgestack # Conflicts: # R/position-nudgestack.R commit 0a89016 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:44:37 2019 +0200 Add news commit 083454a Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:20:41 2019 +0200 Style file commit 9cdcf6a Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:20:41 2019 +0200 Style file commit 7d23e89 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 08:51:55 2019 +0200 Resolve conflict commit 99eab52 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit 5fa6969 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 15:39:56 2019 +0200 Add the zoo-package to Suggestions commit 8642839 Author: Thomas Knecht <[email protected]> Date: Mon Sep 30 14:06:24 2019 +0200 Use tsbox for converting ts object to tibble commit f891dbc Author: Thomas Knecht <[email protected]> Date: Fri Sep 27 15:58:51 2019 +0200 Bugfix commit a960ca8 Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 15:55:02 2019 +0200 Add tests for correct nudging and stacking commit 5b89b32 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:12 2019 +0200 Add validated svg for position_nudgestack commit 37f1bd6 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:29 2019 +0200 Add test file with a doppelganger-test commit e392ac8 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit d443b80 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:20 2019 +0200 Delete packages from @examples commit d967b8e Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:06:00 2019 +0200 Adjust filter criterion in examples commit b1c8b1a Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 15:39:56 2019 +0200 Add the zoo-package to Suggestions commit 55602af Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:00:28 2019 +0200 Add position-nudgestack.R into man commit 9f6aa7d Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:58:38 2019 +0200 Add new position_nudgestack into NAMESPACE commit 1b7c4c0 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:56:35 2019 +0200 Add new position to DESCRIPTION commit 6d76c3a Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:47:58 2019 +0200 Add time series example commit f67ae70 Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:26:32 2019 +0200 Delete emtpy rows commit 14fd33d Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:09:06 2019 +0200 Add position_nudgestack commit 0ff81cb Merge: 7214587 10fa001 Author: Thomas Knecht <[email protected]> Date: Wed Oct 2 13:46:28 2019 +0200 Merge remote-tracking branch 'upstream/master' into Add_position_nudgestack commit 10fa001 Author: Thomas Lin Pedersen <[email protected]> Date: Tue Oct 1 11:12:59 2019 +0200 Removing direction constraint from geoms (tidyverse#3506) commit 88c5bde Author: Mine Cetinkaya-Rundel <[email protected]> Date: Tue Oct 1 09:32:08 2019 +0100 Minor updates to data docs (tidyverse#3545) commit 7214587 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:44:37 2019 +0200 Add news commit 28ba9bf Merge: daeb34e e688944 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:32:12 2019 +0200 Merge branch 'Add_position_nudgestack' of https://github.com/ThomasKnecht/ggplot2 into Add_position_nudgestack commit daeb34e Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:20:41 2019 +0200 Style file commit e688944 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:20:41 2019 +0200 Style file commit 9a45cc8 Author: Thomas Lin Pedersen <[email protected]> Date: Tue Oct 1 09:03:07 2019 +0200 scale_binned (tidyverse#3096) commit 02a038e Merge: 88f4a63 bde6844 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:01:10 2019 +0200 Resolve conflict Merge branch 'Add_position_nudgestack' of https://github.com/ThomasKnecht/ggplot2 into Add_position_nudgestack # Conflicts: # R/position-nudgestack.R commit 88f4a63 Author: Thomas Knecht <[email protected]> Date: Mon Sep 30 14:06:24 2019 +0200 Use tsbox for converting ts object to tibble commit 752e476 Author: Thomas Knecht <[email protected]> Date: Fri Sep 27 15:58:51 2019 +0200 Bugfix commit 5271987 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 08:51:55 2019 +0200 Resolve conflict commit 771918d Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 15:55:02 2019 +0200 Add tests for correct nudging and stacking commit da1e7be Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:37 2019 +0200 Delete packages from example commit a1573b3 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:12 2019 +0200 Add validated svg for position_nudgestack commit 59d2b6e Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:50 2019 +0200 Update vdiffr version commit 0e80c8a Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:29 2019 +0200 Add test file with a doppelganger-test commit 31cc104 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit dc6b78d Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:20 2019 +0200 Delete packages from @examples commit d35ea70 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:06:00 2019 +0200 Adjust filter criterion in examples commit 87c00fa Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 15:39:56 2019 +0200 Add the zoo-package to Suggestions commit f587fb8 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:01:48 2019 +0200 Add description of position_nudgestack commit 327a6cd Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:01:13 2019 +0200 Add position_nudgestack into description commit c97d54d Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:00:28 2019 +0200 Add position-nudgestack.R into man commit 7fbc0f7 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:58:38 2019 +0200 Add new position_nudgestack into NAMESPACE commit 9d894a8 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:56:35 2019 +0200 Add new position to DESCRIPTION commit 56e9b3b Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:47:58 2019 +0200 Add time series example commit 4535be6 Author: Mara Alexeev <[email protected]> Date: Tue Sep 3 08:26:07 2019 -0400 Clarify documentation in mpg: very minor (tidyverse#3515) * add helpful explanation of mpg$drv commit c8fa99f Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:26:32 2019 +0200 Delete emtpy rows commit a290bb3 Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:09:06 2019 +0200 Add position_nudgestack commit bde6844 Author: Thomas Knecht <[email protected]> Date: Mon Sep 30 14:06:24 2019 +0200 Use tsbox for converting ts object to tibble commit 0ee259c Author: bernie gray <[email protected]> Date: Mon Sep 30 06:54:57 2019 -0400 default formula argument to NULL in geom_smooth() (tidyverse#3307) commit fa000f7 Author: Dewey Dunnington <[email protected]> Date: Sun Sep 29 18:26:36 2019 -0300 Make position guides customizable (tidyverse#3398, closes tidyverse#3322) * Position guides can now be customized using the new `guide_axis()`, which can be passed to position `scale_*()` functions or via `guides()`. The new axis guide (`guide_axis()`) comes with arguments `check.overlap` (automatic removal of overlapping labels), `angle` (easy rotation of axis labels), and `n.dodge` (dodge labels into multiple rows/columns) * `CoordCartesian` gets new methods to resolve/train the new position guides commit 696fe9d Author: Thomas Knecht <[email protected]> Date: Fri Sep 27 15:58:51 2019 +0200 Bugfix commit b027238 Merge: 10b5e24 c32f856 Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 16:38:27 2019 +0200 Merge branch 'Add_position_nudgestack' of https://github.com/TeddyLeeJones/ggplot2 into Add_position_nudgestack commit 10b5e24 Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 15:55:02 2019 +0200 Add tests for correct nudging and stacking commit 4fb6996 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:37 2019 +0200 Delete packages from example commit 823c686 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:12 2019 +0200 Add validated svg for position_nudgestack commit e6df407 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:50 2019 +0200 Update vdiffr version commit be91893 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:29 2019 +0200 Add test file with a doppelganger-test commit f44e504 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit 3713420 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:20 2019 +0200 Delete packages from @examples commit 9291957 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:06:00 2019 +0200 Adjust filter criterion in examples commit ef5aef7 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 15:39:56 2019 +0200 Add the zoo-package to Suggestions commit 42c0fa3 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:01:48 2019 +0200 Add description of position_nudgestack commit 548f313 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:01:13 2019 +0200 Add position_nudgestack into description commit 7bb930c Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:00:28 2019 +0200 Add position-nudgestack.R into man commit 9bd40d6 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:58:38 2019 +0200 Add new position_nudgestack into NAMESPACE commit c5022d3 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:56:35 2019 +0200 Add new position to DESCRIPTION commit 8572437 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:47:58 2019 +0200 Add time series example commit 3d61c3a Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:26:32 2019 +0200 Delete emtpy rows commit 2782c9d Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:09:06 2019 +0200 Add position_nudgestack commit c32f856 Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 15:55:02 2019 +0200 Add tests for correct nudging and stacking commit d5c58da Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:37 2019 +0200 Delete packages from example commit 015b2e3 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:12 2019 +0200 Add validated svg for position_nudgestack commit 2484f71 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:50 2019 +0200 Update vdiffr version commit e2c1fb6 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:29 2019 +0200 Add test file with a doppelganger-test commit a681f59 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit 02f6be4 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:20 2019 +0200 Delete packages from @examples commit def4755 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:06:00 2019 +0200 Adjust filter criterion in examples commit c1729d1 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 15:39:56 2019 +0200 Add the zoo-package to Suggestions commit 5ebe5d4 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:01:48 2019 +0200 Add description of position_nudgestack commit 99b4b5e Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:01:13 2019 +0200 Add position_nudgestack into description commit 971b110 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:00:28 2019 +0200 Add position-nudgestack.R into man commit e5e91ea Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:58:38 2019 +0200 Add new position_nudgestack into NAMESPACE commit fedef93 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:56:35 2019 +0200 Add new position to DESCRIPTION commit bcc75a3 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:47:58 2019 +0200 Add time series example commit 23e3241 Author: Mara Alexeev <[email protected]> Date: Tue Sep 3 08:26:07 2019 -0400 Clarify documentation in mpg: very minor (tidyverse#3515) * add helpful explanation of mpg$drv commit 01d7db0 Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:26:32 2019 +0200 Delete emtpy rows commit a486906 Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:09:06 2019 +0200 Add position_nudgestack
commit b049018 Merge: e1846bc ccf0ee5 Author: Thomas Knecht <[email protected]> Date: Mon Oct 7 12:29:23 2019 +0200 Resolve conflict Merge branch 'Add_position_nudgestack' of https://github.com/ThomasKnecht/ggplot2 into Add_position_nudgestack # Conflicts: # R/position-nudgestack.R commit e1846bc Author: Thomas Knecht <[email protected]> Date: Mon Oct 7 11:58:47 2019 +0200 Add package spezifications commit 5de0449 Author: Thomas Knecht <[email protected]> Date: Mon Oct 7 11:53:06 2019 +0200 Add package spezifications commit d9ec752 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:20:41 2019 +0200 Style file commit e0368b0 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 08:51:55 2019 +0200 Resolve conflict commit 325456a Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit 3210061 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 15:39:56 2019 +0200 Add the zoo-package to Suggestions commit 739ac7c Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 15:55:02 2019 +0200 Add tests for correct nudging and stacking commit 662a5da Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:12 2019 +0200 Add validated svg for position_nudgestack commit 598b786 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:29 2019 +0200 Add test file with a doppelganger-test commit 90d1257 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:47:58 2019 +0200 Add time series example commit 415811c Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:44:37 2019 +0200 Add news commit 6e4398c Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:20:41 2019 +0200 Style file commit b61211d Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:20:41 2019 +0200 Style file commit 369a34b Author: Thomas Knecht <[email protected]> Date: Mon Sep 30 14:06:24 2019 +0200 Use tsbox for converting ts object to tibble commit e4e7ee0 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 08:51:55 2019 +0200 Resolve conflict commit 4d66dad Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 15:55:02 2019 +0200 Add tests for correct nudging and stacking commit 1b61750 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:29 2019 +0200 Add test file with a doppelganger-test commit 65e72fb Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit e5d61b5 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:06:00 2019 +0200 Adjust filter criterion in examples commit 8848fd9 Author: Thomas Knecht <[email protected]> Date: Mon Sep 30 14:06:24 2019 +0200 Use tsbox for converting ts object to tibble commit 28640d5 Author: Thomas Knecht <[email protected]> Date: Fri Sep 27 15:58:51 2019 +0200 Bugfix commit 59bc2a0 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:00:28 2019 +0200 Add position-nudgestack.R into man commit 71d567b Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:47:58 2019 +0200 Add time series example commit 3a1c71f Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 15:55:02 2019 +0200 Add tests for correct nudging and stacking commit f26bb90 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:12 2019 +0200 Add validated svg for position_nudgestack commit 3ba06ab Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:29 2019 +0200 Add test file with a doppelganger-test commit fbf28dc Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit 5270a9d Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:20 2019 +0200 Delete packages from @examples commit 32d2203 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:06:00 2019 +0200 Adjust filter criterion in examples commit fc6ba5a Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 15:39:56 2019 +0200 Add the zoo-package to Suggestions commit b1bb9d1 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:00:28 2019 +0200 Add position-nudgestack.R into man commit d1c7ad8 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:58:38 2019 +0200 Add new position_nudgestack into NAMESPACE commit 621730d Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:56:35 2019 +0200 Add new position to DESCRIPTION commit 0750e55 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:47:58 2019 +0200 Add time series example commit ce942ac Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:26:32 2019 +0200 Delete emtpy rows commit 86dfea0 Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:09:06 2019 +0200 Add position_nudgestack commit ccf0ee5 Author: Thomas Knecht <[email protected]> Date: Mon Oct 7 11:58:47 2019 +0200 Add package spezifications commit 831d569 Author: Thomas Knecht <[email protected]> Date: Mon Oct 7 11:53:06 2019 +0200 Add package spezifications commit af4abb5 Merge: 0a89016 0ff81cb Author: Thomas Knecht <[email protected]> Date: Wed Oct 2 16:37:11 2019 +0200 Resolve conflict Merge branch 'Add_position_nudgestack' of https://github.com/ThomasKnecht/ggplot2 into Add_position_nudgestack # Conflicts: # R/position-nudgestack.R commit 0a89016 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:44:37 2019 +0200 Add news commit 083454a Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:20:41 2019 +0200 Style file commit 9cdcf6a Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:20:41 2019 +0200 Style file commit 7d23e89 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 08:51:55 2019 +0200 Resolve conflict commit 99eab52 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit 5fa6969 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 15:39:56 2019 +0200 Add the zoo-package to Suggestions commit 8642839 Author: Thomas Knecht <[email protected]> Date: Mon Sep 30 14:06:24 2019 +0200 Use tsbox for converting ts object to tibble commit f891dbc Author: Thomas Knecht <[email protected]> Date: Fri Sep 27 15:58:51 2019 +0200 Bugfix commit a960ca8 Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 15:55:02 2019 +0200 Add tests for correct nudging and stacking commit 5b89b32 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:12 2019 +0200 Add validated svg for position_nudgestack commit 37f1bd6 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:29 2019 +0200 Add test file with a doppelganger-test commit e392ac8 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit d443b80 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:20 2019 +0200 Delete packages from @examples commit d967b8e Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:06:00 2019 +0200 Adjust filter criterion in examples commit b1c8b1a Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 15:39:56 2019 +0200 Add the zoo-package to Suggestions commit 55602af Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:00:28 2019 +0200 Add position-nudgestack.R into man commit 9f6aa7d Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:58:38 2019 +0200 Add new position_nudgestack into NAMESPACE commit 1b7c4c0 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:56:35 2019 +0200 Add new position to DESCRIPTION commit 6d76c3a Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:47:58 2019 +0200 Add time series example commit f67ae70 Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:26:32 2019 +0200 Delete emtpy rows commit 14fd33d Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:09:06 2019 +0200 Add position_nudgestack commit 0ff81cb Merge: 7214587 10fa001 Author: Thomas Knecht <[email protected]> Date: Wed Oct 2 13:46:28 2019 +0200 Merge remote-tracking branch 'upstream/master' into Add_position_nudgestack commit 10fa001 Author: Thomas Lin Pedersen <[email protected]> Date: Tue Oct 1 11:12:59 2019 +0200 Removing direction constraint from geoms (tidyverse#3506) commit 88c5bde Author: Mine Cetinkaya-Rundel <[email protected]> Date: Tue Oct 1 09:32:08 2019 +0100 Minor updates to data docs (tidyverse#3545) commit 7214587 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:44:37 2019 +0200 Add news commit 28ba9bf Merge: daeb34e e688944 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:32:12 2019 +0200 Merge branch 'Add_position_nudgestack' of https://github.com/ThomasKnecht/ggplot2 into Add_position_nudgestack commit daeb34e Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:20:41 2019 +0200 Style file commit e688944 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:20:41 2019 +0200 Style file commit 9a45cc8 Author: Thomas Lin Pedersen <[email protected]> Date: Tue Oct 1 09:03:07 2019 +0200 scale_binned (tidyverse#3096) commit 02a038e Merge: 88f4a63 bde6844 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 09:01:10 2019 +0200 Resolve conflict Merge branch 'Add_position_nudgestack' of https://github.com/ThomasKnecht/ggplot2 into Add_position_nudgestack # Conflicts: # R/position-nudgestack.R commit 88f4a63 Author: Thomas Knecht <[email protected]> Date: Mon Sep 30 14:06:24 2019 +0200 Use tsbox for converting ts object to tibble commit 752e476 Author: Thomas Knecht <[email protected]> Date: Fri Sep 27 15:58:51 2019 +0200 Bugfix commit 5271987 Author: Thomas Knecht <[email protected]> Date: Tue Oct 1 08:51:55 2019 +0200 Resolve conflict commit 771918d Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 15:55:02 2019 +0200 Add tests for correct nudging and stacking commit da1e7be Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:37 2019 +0200 Delete packages from example commit a1573b3 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:12 2019 +0200 Add validated svg for position_nudgestack commit 59d2b6e Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:50 2019 +0200 Update vdiffr version commit 0e80c8a Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:29 2019 +0200 Add test file with a doppelganger-test commit 31cc104 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit dc6b78d Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:20 2019 +0200 Delete packages from @examples commit d35ea70 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:06:00 2019 +0200 Adjust filter criterion in examples commit 87c00fa Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 15:39:56 2019 +0200 Add the zoo-package to Suggestions commit f587fb8 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:01:48 2019 +0200 Add description of position_nudgestack commit 327a6cd Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:01:13 2019 +0200 Add position_nudgestack into description commit c97d54d Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:00:28 2019 +0200 Add position-nudgestack.R into man commit 7fbc0f7 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:58:38 2019 +0200 Add new position_nudgestack into NAMESPACE commit 9d894a8 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:56:35 2019 +0200 Add new position to DESCRIPTION commit 56e9b3b Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:47:58 2019 +0200 Add time series example commit 4535be6 Author: Mara Alexeev <[email protected]> Date: Tue Sep 3 08:26:07 2019 -0400 Clarify documentation in mpg: very minor (tidyverse#3515) * add helpful explanation of mpg$drv commit c8fa99f Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:26:32 2019 +0200 Delete emtpy rows commit a290bb3 Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:09:06 2019 +0200 Add position_nudgestack commit bde6844 Author: Thomas Knecht <[email protected]> Date: Mon Sep 30 14:06:24 2019 +0200 Use tsbox for converting ts object to tibble commit 0ee259c Author: bernie gray <[email protected]> Date: Mon Sep 30 06:54:57 2019 -0400 default formula argument to NULL in geom_smooth() (tidyverse#3307) commit fa000f7 Author: Dewey Dunnington <[email protected]> Date: Sun Sep 29 18:26:36 2019 -0300 Make position guides customizable (tidyverse#3398, closes tidyverse#3322) * Position guides can now be customized using the new `guide_axis()`, which can be passed to position `scale_*()` functions or via `guides()`. The new axis guide (`guide_axis()`) comes with arguments `check.overlap` (automatic removal of overlapping labels), `angle` (easy rotation of axis labels), and `n.dodge` (dodge labels into multiple rows/columns) * `CoordCartesian` gets new methods to resolve/train the new position guides commit 696fe9d Author: Thomas Knecht <[email protected]> Date: Fri Sep 27 15:58:51 2019 +0200 Bugfix commit b027238 Merge: 10b5e24 c32f856 Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 16:38:27 2019 +0200 Merge branch 'Add_position_nudgestack' of https://github.com/TeddyLeeJones/ggplot2 into Add_position_nudgestack commit 10b5e24 Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 15:55:02 2019 +0200 Add tests for correct nudging and stacking commit 4fb6996 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:37 2019 +0200 Delete packages from example commit 823c686 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:12 2019 +0200 Add validated svg for position_nudgestack commit e6df407 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:50 2019 +0200 Update vdiffr version commit be91893 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:29 2019 +0200 Add test file with a doppelganger-test commit f44e504 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit 3713420 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:20 2019 +0200 Delete packages from @examples commit 9291957 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:06:00 2019 +0200 Adjust filter criterion in examples commit ef5aef7 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 15:39:56 2019 +0200 Add the zoo-package to Suggestions commit 42c0fa3 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:01:48 2019 +0200 Add description of position_nudgestack commit 548f313 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:01:13 2019 +0200 Add position_nudgestack into description commit 7bb930c Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:00:28 2019 +0200 Add position-nudgestack.R into man commit 9bd40d6 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:58:38 2019 +0200 Add new position_nudgestack into NAMESPACE commit c5022d3 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:56:35 2019 +0200 Add new position to DESCRIPTION commit 8572437 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:47:58 2019 +0200 Add time series example commit 3d61c3a Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:26:32 2019 +0200 Delete emtpy rows commit 2782c9d Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:09:06 2019 +0200 Add position_nudgestack commit c32f856 Author: Thomas Knecht <[email protected]> Date: Wed Sep 18 15:55:02 2019 +0200 Add tests for correct nudging and stacking commit d5c58da Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:37 2019 +0200 Delete packages from example commit 015b2e3 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:03:12 2019 +0200 Add validated svg for position_nudgestack commit 2484f71 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:50 2019 +0200 Update vdiffr version commit e2c1fb6 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 18:02:29 2019 +0200 Add test file with a doppelganger-test commit a681f59 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:49 2019 +0200 Add new examples commit 02f6be4 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:09:20 2019 +0200 Delete packages from @examples commit def4755 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 16:06:00 2019 +0200 Adjust filter criterion in examples commit c1729d1 Author: Thomas Knecht <[email protected]> Date: Tue Sep 17 15:39:56 2019 +0200 Add the zoo-package to Suggestions commit 5ebe5d4 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:01:48 2019 +0200 Add description of position_nudgestack commit 99b4b5e Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:01:13 2019 +0200 Add position_nudgestack into description commit 971b110 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 14:00:28 2019 +0200 Add position-nudgestack.R into man commit e5e91ea Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:58:38 2019 +0200 Add new position_nudgestack into NAMESPACE commit fedef93 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:56:35 2019 +0200 Add new position to DESCRIPTION commit bcc75a3 Author: Thomas Knecht <[email protected]> Date: Mon Sep 16 13:47:58 2019 +0200 Add time series example commit 23e3241 Author: Mara Alexeev <[email protected]> Date: Tue Sep 3 08:26:07 2019 -0400 Clarify documentation in mpg: very minor (tidyverse#3515) * add helpful explanation of mpg$drv commit 01d7db0 Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:26:32 2019 +0200 Delete emtpy rows commit a486906 Author: Thomas Knecht <[email protected]> Date: Tue Sep 3 09:09:06 2019 +0200 Add position_nudgestack
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
This is a PR to address #3322, and allows the same syntax that is currently used to customize non-position guides to be used for position guides. This allows the strategies for dealing with overlapping labels that were implemented in #3375 to actually be used (closes #3281). Currently, these only work for
CoordCartesian
, but could easily be adapted toCoordTrans
as well.The main changes are:
Coord
s:setup_panel_guides()
andtrain_panel_guides()
. These are both called fromLayout$setup_panel_guides()
at draw time. BothCoord
methods return modified versions of thepanel_params
, where theguides
are kept.guide_axis()
andguide_none()
constructors, which return list S3s similar to the other guides.guide_axis()
andguide_none()
objects that exist for all other guides.guide_transform()
, which allows position guides access to thecoord
andpanel_params
.Some problems include:
Coord$transform()
). I don't know how to get around this, but am open to suggestions.gtable
code to draw this (see this reprex ). Currently the code draws the first guide and issues a warning (there is a test for this).A reprex giving the main syntax:
Created on 2019-07-05 by the reprex package (v0.2.1)