r - How to display only median value in boxplot? -
this question has answer here:
i need create boxplot displays median value in it. not on axes directly inside plot.
i found thread useful: how put values.. solution:
boxplot(x, horizontal = true, axes = false, staplewex = 1) text(x = boxplot.stats(x)$stats, labels = boxplot.stats(x)$stats, y = 1.25)
however, displays values , not figure out way customize it.
boxplot.stats(x)$stats[3]
shows median
boxplot(x, horizontal = true, axes = false, staplewex = 1) text(x = boxplot.stats(x)$stats[3], labels = boxplot.stats(x)$stats[3], y = 1.25)
will have median
label
Comments
Post a Comment