可能的重复:
更改箱线图中的异常值规则 https://stackoverflow.com/questions/4994313/changing-the-outlier-rule-in-a-boxplot
我需要使用箱线图可视化我的结果。
x<-rnorm(10000)
boxplot(x,horizontal=TRUE,axes=FALSE)
如何在可视化过程中过滤异常值?
(1) 这样我就可以在屏幕上显示完整的图像,而不会出现丑陋的异常值。
http://postimage.org/image/szzbez0h1/a610666d/ http://postimage.org/image/szzbez0h1/a610666d/
(2) 有没有办法显示一定范围内的异常值?http://postimage.org/image/np28oee0b/8251d102/ http://postimage.org/image/np28oee0b/8251d102/
Regards
See ?boxplot
为您提供所需的所有帮助。
outline: if ‘outline’ is not true, the outliers are not drawn (as
points whereas S+ uses lines).
boxplot(x,horizontal=TRUE,axes=FALSE,outline=FALSE)
为了扩大晶须的范围并抑制该范围内的异常值:
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.
# change the value of range to change the whisker length
boxplot(x,horizontal=TRUE,axes=FALSE,range=2)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)