When making an interaction plot using lineplot.CI in the sciplot library, error bars can overlap across groups. For example,
data = c(1,5,3,7,3,7,5,9)
grp1 = c(1,1,1,1,2,2,2,2)
grp2 = c(1,1,2,2,1,1,2,2)
lineplot.CI(grp1, data, grp2)
The groups can be separated along the x axis by adding jitter to the grouping variable and setting x.cont to TRUE, but this makes the lines in the plot disappear:
data = c(1,5,3,7,3,7,5,9)
grp1 = c(1,1,1,1,2,2,2,2) + c(-0.05, -0.05, 0.05, 0.05, -0.05, -0.05, 0.05, 0.05)
grp2 = c(1,1,2,2,1,1,2,2)
lineplot.CI(grp1, data, grp2, x.cont=TRUE)
Is it possible to get the lines to appear and to jitter the points, so that the error bars don't overlap? Or is there a better way to make this kind of plot?