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

stat_point_boxplot(
  stat = "mean",
  width = 0.5,
  point_size = 2,
  point_color = "red",
  point_shape = 1
)

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())

point_size

Numeric of length 1. Size of the point. Default = 2

point_color

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

Author

amitjavilaventura