在R中的ggplot中设置outlier.color=NA有什么用?

在R中的ggplot中设置outlier.color=NA有什么用?,r,ggplot2,R,Ggplot2,下面的语句outlier.color=NA有什么用??是否要从箱线图视图中删除异常值 f<- ggplot(data= Fin, aes(x=Industry,y=Growth,colour=Industry)) f + geom_jitter() + geom_boxplot(size=2,alpha=0.5,outlier.color = NA) f异常值。颜色覆盖用于异常值点的默认美学 p <- ggplot(mpg, aes(class, hwy)) # By

下面的语句outlier.color=NA有什么用??是否要从箱线图视图中删除异常值

 f<- ggplot(data= Fin, aes(x=Industry,y=Growth,colour=Industry))



 f + geom_jitter() + geom_boxplot(size=2,alpha=0.5,outlier.color = NA)

f
异常值。颜色
覆盖用于异常值点的默认美学

p <- ggplot(mpg, aes(class, hwy))

# By default, outlier points match the colour of the box. Use
# outlier.colour to override
p + geom_boxplot(outlier.colour = "red", outlier.shape = 1)
p + geom_boxplot(outlier.colour = NA)