简体   繁体   English

如何用ggplot计算箱线图的晶须极端?

[英]How is the extreme of the whisker of boxplot calculated with ggplot?

I'm trying to do a boxplot with ggplot function : ggplot() + geom_boxplot(...) 我正在尝试使用ggplot函数做一个箱线图: ggplot()+ geom_boxplot(...)

how is the whisker calculated with ggplot? 晶须如何用ggplot计算?

This is answered on the ?geom_boxplot help page: 这可以在?geom_boxplot帮助页面上得到?geom_boxplot

The upper whisker extends from the hinge to the largest value no further than 1.5 * IQR from the hinge (where IQR is the inter-quartile range, or distance between the first and third quartiles). 上晶须从铰链延伸到最大值,距离铰链不超过1.5 * IQR(其中IQR是四分位间距或第一和第三四分位数之间的距离)。 The lower whisker extends from the hinge to the smallest value at most 1.5 * IQR of the hinge. 下晶须从铰链延伸到最小值,最大为铰链的1.5 * IQR。 Data beyond the end of the whiskers are called "outlying" points and are plotted individually. 晶须末端以外的数据称为“外围”点,并分别进行绘制。

(From my version 2.2.1. Find the current docs here: http://ggplot2.tidyverse.org/reference/geom_boxplot.html , or the docs for whatever version you are using at ?geom_boxplot .) (从我的2.2.1版本开始,在此处找到当前文档: http : ?geom_boxplot ,或者您在?geom_boxplot中使用的任何版本的文档。)

If you have questions about the hinge, see the preceding paragraph on the help page. 如果您对铰链有疑问,请参阅帮助页面上的上一段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM