没有胡须和出点的箱线图
boxplot without whiskers and out points
有人知道如何消除 R 箱线图中的最大和最小条形图吗?
我试过上面的命令,但没有用。
boxplot(rnorm(0:200), main="abundances", xlab="Samples", ylab="Phylum abundance (%)", header=TRUE, cex=1, ylim=c(-5,4.), notch=F)
谢谢
我有这个:
但是想要这个:
您可以像这样将 staplewex
和 whisklty
参数添加到底图:
boxplot(rnorm(0:200), main="abundances", xlab="Samples", ylab="Phylum abundance (%)", header=TRUE, cex=1, ylim=c(-5,4.), notch=F,
staplewex = 0, # remove horizontal whisker lines
outline = F, # remove outlying points
whisklty = 0, # remove vertical whisker lines
staplecol = "white", # just to be totally sure :)
whiskcol = "white" # dito
)
有人知道如何消除 R 箱线图中的最大和最小条形图吗? 我试过上面的命令,但没有用。
boxplot(rnorm(0:200), main="abundances", xlab="Samples", ylab="Phylum abundance (%)", header=TRUE, cex=1, ylim=c(-5,4.), notch=F)
谢谢
我有这个:
但是想要这个:
您可以像这样将 staplewex
和 whisklty
参数添加到底图:
boxplot(rnorm(0:200), main="abundances", xlab="Samples", ylab="Phylum abundance (%)", header=TRUE, cex=1, ylim=c(-5,4.), notch=F,
staplewex = 0, # remove horizontal whisker lines
outline = F, # remove outlying points
whisklty = 0, # remove vertical whisker lines
staplecol = "white", # just to be totally sure :)
whiskcol = "white" # dito
)