I have a qplot generated by the following:
qplot(data=data, x=xvar, y=value, colour=variable, group=variable,
geom=c("point", "line"), ylim(0, 20000))
In the resulting image, the y points are very close to each other. I’d like to make their separation more clear. As you can see I tried using ylim to do this, but that had no effect.
Using
position=position_jitter(w,h)in yourqplotyou can control the spacing in a scatter plot. For example:This causes random sidescatter of the dots in the width direction, but no scatter in the height direction.