我在 R 中构建了一些箱线图并有几个异常值。我知道设置异常值限制的默认标准是:
但是,我希望将异常值归类为超出边界的值:
是否可以在 R 中设置它?
最佳答案
来自 ?boxplot
range: this determines how far the plot whiskers extend out from the box. If ‘range’ is positive, the whiskers extend to the most extreme data point which is no more than ‘range’ times the interquartile range from the box. A value of zero causes the whiskers to extend to the data extremes.
所以设置
range=3
关于r - 更改箱线图中的异常值规则,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4994313/