-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Position stack+text geom #3416
Position stack+text geom #3416
Conversation
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.
Thank you for this PR...it looks great! Could you add a test in tests/testthat/test-position-stack.R
to make sure that this bug is fixed for all time? Something like this would work quite well:
test_that("position_stack() can stack when ymax is NA", {
df <- data_frame(x = c(1, 1), y = c(1, 1))
p <- ggplot(df, aes(x, y, ymax = NA_real_)) + geom_point(position = "stack")
# expect something about layer_data(p)
})
Thanks. I am afraid I am short of time here to write a proper test, but your proposal looks good; something like
should be sufficient. Feel free to add it directly once the pull request is approved. |
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/ |
closes #2709