I have a large dataset and would like to plot boxplots of two paired samples using ggpaired(). However, ggpaired() automatically adds connecting lines between the samples. Because I have lots of observations, this looks ridiculous and I would like to just get rid of the lines. I tried setting the line.size = 0 or line.color = "white" etc.
However, I am not able to plot the boxplots without the lines. Does anyone know how this can be fixed, or does anybody know a package that allows me to do so? Your help is appreciated!!
Sample code:
ggpaired(ToothGrowth, x = "supp", y = "len", color = "supp",
line.color = "gray", line.size = 0.4, palette = "jco")+
stat_compare_means(paired = TRUE)
geom_boxplot
? - Allan Cameron