# NOT RUN {
set.seed(2013)
dat6 <- matrix(round(rnorm(300)+3,1), ncol=6,
dimnames=list(paste("li",1:50,sep=""), letters[19:24]))
vioplotW(dat6)
## variable number of elements (each n is displayed)
dat6b <- apply(dat6,2,function(x) x[which(x <5)])
dat6b[[4]] <- dat6b[[4]][dat6b[[4]] <4]
vioplotW(dat6b, col="Spectral")
vioplotW(dat6b, col="Spectral" ,halfViolin="pairwise", horizontal=TRUE)
vioplotW(dat6b, col="Spectral", halfViolin="pairwise", horizontal=FALSE)
# }
Run the code above in your browser using DataLab