violinPlot {RBaM} | R Documentation |
violinPlot
Description
returns a violinplot ggplot
Usage
violinPlot(sim, ylab = "values", col = "black")
Arguments
sim |
vector or matrix or data frame, MCMC simulations |
ylab |
Character, label of y-axis |
col |
Color |
Value
A ggplot
Examples
# Create Monte Carlo samples
n=1000
sim=data.frame(p1=rnorm(n),p2=rlnorm(n),p3=runif(n))
# create violin plot comparing all components
figure=violinPlot(sim)
[Package RBaM version 1.0.1 Index]