r - 只有一条胡须线的箱线图?
问题描述
我想在两个不同的地方比较一个变量。为此,我在 R 中使用了以下代码:
boxplot(variable~place)
解决方案
正如评论中所指出的,箱线图没有任何问题。每个只有一个胡须的事实反映了您的数据。
箱线图是一种非常有指导意义的图形:它们不仅显示数据的位置和分布,而且还指示偏度。箱线图的解释取决于它的“语法”,即它的主要图形元素。有五个这样的元素:
1. bold horizontal line: depicts the median (the middle value of a sorted distribution)
2. box: represents the interquartile range (IQR)
3. whiskers: separate values lying outside the IQR (but still somewhat typical of the data) from outliers
3. empty circles: depict outliers (values surprisingly large or small given all values considered)
4. notches (optional): give a rough impression of the significance of the difference between the medians
那么,每个箱线图中只有一个晶须的事实是,由于数据的极端偏斜:在箱的情况下,1
值的上限是 IQR 的上限,在箱的情况下2
存在没有小于中位数的值!
希望这可以帮助。
推荐阅读
- c++ - 'std::function 之间的转换
'到'双(*)(双)' - javascript - KnockoutJS 和 PubSub 更新视图之间的可观察数组
- java - 错误:无法使用 Google Cloud StorageOptions for SignUrl 加载 PDF 文档
- ios - 子类中的 UIView 作为 @IBOutlet 而在超类中是实例属性,而不是插座
- javascript - AngularJS 绑定问题
- powerbi - Alteryx 一个很好的 ETL 工具
- javascript - 隐藏一个
- 当点击另一个
- java - Wicket 8 wicket setDefaultModel 与 setDefaultModel 冲突
- gitlab - 将 Jira(云)与 Gitlab(服务器)集成
- sql - 在 SQL 中完成的工单持续时间