I need to create a boxplot which displays the median value in it. Not on the axes but directly inside the plot.
I found this thread very useful: How to put values.. with the solution:
boxplot(X, horizontal = TRUE, axes = FALSE, staplewex = 1)
text(x = boxplot.stats(X)$stats, labels = boxplot.stats(X)$stats, y = 1.25)
However, it displays all values and I could not figure out a way to customize it.
                        
boxplot.stats(X)$stats[3]shows only the medianWill only have the
medianas the label