Search code examples
ranalytics

Position function resulting in warning


I m a beginner to R in data analysis context. And here i had to stop as i cant position any of my data. A warning appears but nothing displays.Its just like the position function only doesn't work.

qplot(cty,hwy,data=mpg,position = "jitter")
Warning message:
`position` is deprecated 

Solution

  • As the warning says position is deprecated. Instead of position="jitter" use geom="jitter"