Why geom_boxplot identify more outliers than base boxplot?

前端 未结 1 825
春和景丽
春和景丽 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)
提交回复
热议问题