Adding sample size to a box plot at the min or max of the facet in ggplot
问题 There are plenty of explanations, including this good one, of how to label box plots with sample size. All of them seem to use max(x) or median(x) to position the sample size. I'm wondering if there is a way to easily position the labels at the top or bottom of the plot, especially when using the scale = "free_y" command in facet where the max and minimum value for the axis is picked automatically for each facet by ggplot. The reason is that I am creating multiple facets where the