Hi R community - I am plotting a ggplot and would like to horizontally and/or vertically align and/or stack the overlapping data point. I used a couple of different library and position=position_jitter() but looks like I am missing something. Can anyone in the team help me figure out this
My code:
ggplot(s, aes(x = Sample, y = Ct, color = Infection, shape = Tech)) + geom_point(size = 4) + scale_x_continuous(n.breaks = 18, limits = c(1, 18))
Outcome:
Fail attempts:
code ggplot(s, aes(x = Sample, y = Ct, color = Tech, shape = Infection)) + geom_point(size = 4, position=position_jitter(h=0.01,w=8)) + scale_x_continuous(n.breaks = 18, limits = c(1, 18))
outcome


