Why geom_boxplot identify more outliers than base boxplot?

前端 未结 1 827
春和景丽
春和景丽 2021-01-14 08:39

Here is a reproducible example, the last treatment group has one more outliers identified compared to the base boxplot.

相关标签:
1条回答
  • 2021-01-14 09:08

    The calculation method for the hinges is different. geom_boxplot() uses actual 1st & third quantiles, boxplot() uses a version of this which is not the same for even n.

    This is well documented in both ?geom_boxplot and ?boxplot.stats

    0 讨论(0)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题