library(violinmplot)
## Sample data frame
x <- c(1,1,1,2,2,3, 1,2,2,3,3,3)
g <- c(1,1,1,1,1,1, 2,2,2,2,2,2)
f <- data.frame("Daten"=x,"Gruppe"=g)
## Display a horizontal violinmplot
violinmplot( Gruppe ~ Daten, data=f )
## Same plot displayed vertically
violinmplot( Daten ~ Gruppe, data=f, horizontal=FALSE)
Run the code above in your browser using DataLab