# NOT RUN {
normvar<-c(rnorm(49),-4)
unifvar<-runif(50,-2,2)
violin_plot(matrix(c(normvar,unifvar),ncol=2),
main="Default plot",x_axis_labels=c("Normal","Uniform"))
violin_plot(matrix(c(normvar,unifvar),ncol=2),at=1:3,
main="Different colors and extra space",
x_axis_labels=c("Normal","Uniform","Normal"))
normvar2<-rnorm(45)
violin_plot(normvar2,at=3,add=TRUE,col="green")
# }
Run the code above in your browser using DataLab