ggplot(data = diamonds) + stat_summary( mapping = aes(x = cut, y = depth), fun.min = min, fun.max = max, fun = median ) ```when running the code above,I can not understand what "fun.min,fun.max,fun" mean,the result confuses me,
They simply represent the minimum and maximum values of depth per value of cut.
Thank you for your replying,I run the code below and get the same plot,does fun.min/max just set the plot range (I mean the ylim)
ggplot(data = diamonds) +
mapping = aes(x = cut, y = depth),
fun.min = max,
fun.max = min,
fun = median
They provide the values for the line ranges. Alternative options could be e.g. confidence intervals.
This may not be the most straightforward type of plot with which to start if you are new to
ggplot2. This is an on-line book on all the plotting options:
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.