我试图摆脱我的图中包含箱线图和贝叶的异常值。
我用以下行创建了boxplot:
boxplot(Lead_s ~ Group, data = g, outline = FALSE,
main = 'Gaze shift duration with co-occuring movement units',
horizontal=TRUE,xlab = "Gaze lead (sec)")
随着outline=FALSE
我的异常值消失。
然后,我运行此代码以蜜蜂群的形式获取我的数据点。
beeswarm(Lead_s ~ Group, data = g, col = 4, pch = 16,
add = TRUE,horizontal=TRUE,pwcol = 1 + as.numeric(Lead_s))
蜜蜂群的箱线图:
如果outliers
被绘制在图表之外,会发生什么。无论我是否添加outline=FALSE
,异常值仍然存在。
这是我绘制的数据样本:
Group Lead_s
Non-Performers 1
Non-Performers 3
Expert 18
Non-Performers 0.1
Non-Performers 0.1
Non-Performers 0.1
Non-Performers 0.2
Non-Performers 0.2
Non-Performers 0.3
Expert 0.4
Non-Performers 0.4
Non-Performers 0.4
Expert 0.5
Non-Performers 0.5
Non-Performers 0.6
Non-Performers 0.6
Non-Performers 0.7
Expert 0.8
Non-Performers 0.8
Expert 1.1
Expert 1.1
Non-Performers 1.1
Expert 1.3
Non-Performers 1.3
Non-Performers 1.4
Non-Performers 1.4
Non-Performers 1.4
Non-Performers 1.5
Expert 1.7
Expert 1.9
Non-Performers 1.9
Expert 2.1
Non-Performers 2.1
Non-Performers 2.1
Non-Performers 2.1
Non-Performers 2.3
Expert 2.5
Expert 2.7
Expert 2.7
Non-Performers 3.1
Expert 4.1
Expert 4.5
Non-Performers 5.6
Non-Performers 6.7
任何想法我该如何解决?
答案 0 :(得分:0)
您似乎有非默认' xpd' (剪辑)设置。 (见export interface CommonInputProp{
id:Number;
value?:String;
displayName?:String;
order?:Number;
viewVal:String=this.value|this.displayName; // This is not supported now
}
)
要获得默认行为(不显示绘图区域之外的任何点),您可以在绘图命令之前设置xpd:
?par