Closed
Description
Unanticipated warning displayed below. The height and width aesthetics are definitely used and not ignored.
Thanks!
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")
#> Warning: Ignoring unknown aesthetics: width
Metadata
Metadata
Assignees
Labels
No labels