Displaying 1 result from an estimated 1 matches for "positionjitter".
Did you mean:
position_jitter
2008 Nov 19
2
ggplot2; dot plot, jitter, and error bars
...error bars.
Above 0=Low. I would like there to be
some space between the 5 and the 6 corresponding to Low so I tried jittering:
p <- ggplot(mydata, aes(x=x, y=y))
p+geom_point()
p + geom_jitter(position=position_jitter(xjitter=2))
But I obtained this error:
Error in get("new", env = PositionJitter, inherits = TRUE)(PositionJitter, :
unused argument(s) (xjitter = 2)
Any suggestions on how to plot this. I could create the separation in
the x-axis (0,0.2,1,1.2,2,2.2). If so,
how could I relable the axis ("Low","Med","High") in ggplot2.
Thanks for your help.
J...