This question already has answers here:
How do I turn the numeric output of boxplot (with plot=FALSE) into something usable?

(3 个回答)


6年前关闭。




我需要找到每条水平线的确切值(小水平划线
框上方是小于或等于第 3 个的最大观测值
四分位数加 1.5 * r。框下方的小横线是最小的
大于或等于每个框的第 1 个四分位数减去 1.5 *r) 的观察值。

我尝试使用公式 (Q3+1.5*(Q3-Q1))Q1-1.5*(Q3-Q1) 但在某些情况下它失败了。

我尝试使用 boxplot$conf 但它失败了。

最佳答案

您可以通过以下方式访问这些值。

boxplot(dat)$stats[c(1, 5), ]

其中 dat 是您的数据。

关于r - 箱线图 - 查找上下晶须的值,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26546014/

10-12 20:55