My goal is to create boxes in R (itโs not necessary to be with ggplot2, but what Iโm using now) that are stylistically similar to this example I found somewhere (minus the text):

Here is the code that I still have:
dat <- read.table(file = "https://www.dropbox.com/s/b59b03rc8erea5d/dat.txt?dl=1", header = TRUE, sep = " ") library(ggplot2) p <- ggplot(dat, aes(x = Subscale, y = Score, fill = Class)) p + stat_boxplot(geom = "errorbar", width = 1.2, size = 2.5, color = "#0077B3") + geom_boxplot(outlier.shape = NA, coef = 0, position = position_dodge(.9)) + scale_fill_manual(values = c("#66CCFF", "#E6E6E6")) + theme(panel.background = element_rect(fill = "white", color = "white"))
Result:

Obviously, there are many differences between what I have and what the example shows, but now I focus only on removing the endpoints from the error bars, by which I mean the horizontal upper and lower parts created by stat_boxplot . Does anyone know a way that I can get the desired effect?
source share