Description Usage Arguments Value Author(s) References See Also Examples
This function combines a violin plot from the package lattice with values for the arithmetic mean and standard deviation.
1 | violinmplot(x, data, ...)
|
x |
a formula describing the plot, typically of the form y ~ x. |
data |
the data frame containing values for any variables in the formula provided as argument |
... |
further arguments which are passed on to other functions used by this package. Possible arguments are as follows:
.
. |
An object of calss "trellis"
. The update.trellis
method can be
used too update components of the object and the print.trellis
method (usually called by default) will plot it on an appropriate plotting device.
Raphael W. Majeed
The package was developed for a 2009 German national survey of usability in healthcare IT. http://www.usabil-it.de/2009/ (in German)
1 2 3 4 5 6 7 8 9 10 11 12 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.