-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
position_nudge seems to not not work with geom_boxplot
library(ggplot2)
df <- data.frame(x = factor("x"), y = 1:10)
ggplot(df, aes(x = x, y = y)) +
geom_boxplot(position = position_nudge(x = -0.2, y = 0))
#> Error: position_nudge requires the following missing aesthetics: yWhat I want to do eventually, is to place a dotplot next to a boxplot like on this image

(I manage to produce this image with ggplot2. Oddly, this issue does not occur with some data. That is why I am completely lost...)
I use R 3.5.1 with ggplot2 3.0.0 on debian stretch. The reproducible example was made with reprex.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels