Adds information in a boxplot about the number, mean, median or standard deviation for each group

stat_info_boxplot(
  statistic = "n",
  label = "",
  y = 0,
  text_size = 3,
  text_color = "black",
  width = 0.5
)

Arguments

statistic

Character of length 1. One of c("n", "mean", "median", "sd", 'sum'). Default = "n".

label

Character of length 1. The label to show with the statistic, e.g. "N=". Default = "".

y

Character or numeric of length 1. If character, one of c("upper", "lower", "min", "max", "q1", "q2", "median", "q3"). If numeric, the Y coordinates of the label. Default = 0.

text_size

Numeric of length 1. Size of the label.

text_color

Character of length 1. Color of the label.

width

Numeric of length 1. Passed through poistion_dodge(width=width).

Author

amitjavilaventura