-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Regression with width aesthetic in documentation #1904
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
Comments
And library(tidyverse)
df <- tibble(
x = c("F1","F2","Overall"),
y = c(0.4,0.5,0.42),
w = c(1,1,2) * 0.5
)
ggplot(df, aes(x, y)) +
geom_col(aes(width=w)) |
This is trickier than I thought. I think the key is that When I come back to this, I have work in local "alternative-aes" branch |
Isn't that what the "slightly hacky" grep -r extra_params |
@has2k1 that's subtly different, I think, and I suspect wiring it up with parameters will have the same problems. |
This issue seems fixed already. Can we close this? library(ggplot2)
df <- data.frame(
x = rep(c(2, 5, 7, 9, 12), 2),
y = rep(c(1, 2), each = 5),
z = factor(rep(1:5, each = 2)),
w = rep(diff(c(0, 4, 6, 8, 10, 14)), 2)
)
ggplot(df, aes(x, y)) +
geom_tile(aes(fill = z, width = w), colour = "grey50") Created on 2019-02-14 by the reprex package (v0.2.1) |
Fixed by this commit: a11f786 |
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/ |
A warning is omitted when using the
width
aesthetic, but still seems to produce identical plots.Example from ggplot2 documentation for
geom_tile
:2.1 Documentation, Dev Documentation
ggplot2 2.2:
ggplot2 2.1:
The text was updated successfully, but these errors were encountered: