2017-02-10 64 views
1

任何人都知道如何消除R boxplot中的最大和最小酒吧? 我試過上面的命令,但沒有奏效。從boxplot消除鬍鬚

boxplot(rnorm(0:200), main="abundances", xlab="Samples", ylab="Phylum abundance (%)", header=TRUE, cex=1, ylim=c(-5,4.), notch=F) 

enter image description here

謝謝

我有這樣的: 但希望這樣的: enter image description here

回答

1

您可以在staplewexwhisklty參數添加到baseplot這樣的:

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 
     ) 

enter image description here