I wrote this R code:
data <-read.table('data.txt',header=T)
ggplot(data, aes(x=Group, y=Baseline,fill=Group) + geom_boxplot() + xlab("Group") + ylab("Height") + scale_y_continuous(limit = c(0, 4.0))
names <- c("name1\ntest1", "name1\ntest2", "name1\ntest3","name1\ntest4","name1\ntest5","name1\ntest6")
g2 + scale_x_discrete(labels= names) + scale_fill_manual(values=c('black','blue','red','green','yellow','brown'))
The output is a boxplot that is correct, but I want the lines leading from the boxplot to the outliers to to look like this and not like this. The two main differences between the boxplots: (1) that I want a small horizontal dash where the vertical line to outlier ends and (2) I would like the vertical line to be dashed.
If anyone could demonstrate I would appreciate it. As a side note, in my actual plot, the y axis 0 does not start on the x axis (like this), but rather the y axis starts after a little gap. If someone also knew how to get the y axis to start at 0, at the same point that the x axis 0 starts that would be great.