Discussion:
geom_boxplot and position_nudge
s***@gmail.com
2018-06-23 02:22:10 UTC
Permalink
Seems like there is some issue with using geom_boxplot and position_nudge


df<-data.frame(y=1:10,dist=1)Browse[2]> g<-g+geom_boxplot(data=df,mapping=aes(x=dist,y=y),width=0.01, position = position_nudge(x=-0.5, y= 0.0))Browse[2]> g

Error: position_nudge requires the following missing aesthetics: y



As you may see, even though I have provided the y aesthetic to position_nudge, I still get an error.

Please let me know if there is an easy way to resolve this.
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility

To post: email ***@googlegroups.com
To unsubscribe: email ggplot2+***@googlegroups.com
More options: http://groups.google.com/group/ggplot2

---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...