Draws a line in a boxplot to show where the mean, median, quartiles... are.

stat_line_boxplot(stat = "mean", width = 0.5, height = 0.1, color = "red")

Arguments

stat

Character of length 1. One of c('mean', 'median', 'q1', 'q2', 'q3', 'q4', 'min', 'max'). Default = "mean".

width

Numeric of length 1. Passed through poistion_dodge(width=width). Default = .5 (same as in stat_summary_boxplot())

height

Numeric of length 1. Height of the line Default = .1

color

Character of length 1. Color of the point. Default = "red".

Author

amitjavilaventura