powered by
returns a violinplot ggplot
violinPlot(sim, ylab = "values", col = "black")
A ggplot
vector or matrix or data frame, MCMC simulations
Character, label of y-axis
Color
# 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)
Run the code above in your browser using DataLab