violinPlot | R Documentation |
returns a violinplot ggplot
violinPlot(sim, ylab = "values", col = "black")
sim |
vector or matrix or data frame, MCMC simulations |
ylab |
Character, label of y-axis |
col |
Color |
A ggplot
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.