I am new to R and I have been trying to figure out how to decrease the distance between data in a stripchart.
I want two categories on the x-axis to be closer together. Here's the code I used:
stripchart(Ct ~ NugentScore, data = Avagdata, vertical = TRUE, method = 'jitter', jitter = 0.1, pch = 16)
It creates a stripchart similar to the one under stripchart vs beeswarm. http://www.cbs.dtu.dk/~eklund/beeswarm/ For example, I would want categories A and B on the x-axis to be closer together (the data and the labels). The difference is my graph only has two categories on the x-axis.
Any suggestions? Any help would be greatly appreciated!
The 'at' argument seems effective:
stripchart(decrease ~ treatment,
main = "stripchart(OrchardSprays)",
vertical = TRUE, log = "y",
at=seq(1,length.out=length(unique(OrchardSprays $treatment)), by=0.5),
data = OrchardSprays)
?stripchart