诀窍是为您的休息时间间隔提供名称,就像使用names.arg
中的barplot
参数一样:
# install.packages("plotrix")
library(plotrix)
set.seed(1)
l <- list(rnorm(50),rnorm(50,sd=2),rnorm(50,mean=3))
breaks <- pretty(unlist(l))
levs <- levels(cut(unlist(l), breaks=breaks))
multhist(l, breaks=breaks, names.arg = levs)