箱线图-查找上下须的值[重复]

时间:2022-01-20 01:20:42

This question already has an answer here:

这个问题已经有了答案:

I need to find the exact value of each horizontal line (The small horizontal dash above the box is the largest observation that is less than or equal to the 3rd quartile plus 1.5 * r. The small horizontal dash below the box is the smallest observation that is greater than or equal to the 1st quartile minus 1.5 *r) of each box.

我需要找到每个水平线的精确值(水平冲上面的小盒子是最大的发现是小于或等于第三四分位数+ 1.5 * r。这个水平冲刺下的小盒子是最小的观察,大于或等于第一个四分位数- 1.5 * r)每个箱子。

I tried with the formula (Q3+1.5*(Q3-Q1)) and Q1-1.5*(Q3-Q1) but in some cases it fails.

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

I tried with boxplot$conf but it failed with me.

我试过boxplot$conf,但失败了。

1 个解决方案

#1


4  

You can access these values in the following way.

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

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

where dat is your data.

dat是你的数据。

#1


4  

You can access these values in the following way.

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

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

where dat is your data.

dat是你的数据。