Returns violin plots for the relationship between two measures for each group/unit.
violinplots(x, y, group, data)
A vector.
A vector that contains unit/group identifiers.
A data frame.
Violin plots for the relationship between two measures for each group/unit.
# NOT RUN { a <- runif(1000, min = 0, max = 1) b <- a + rnorm(1000, mean = 0, sd = 1) c <- rep(c(1:10), times = 100) data <- data.frame(a, b, c) violinplots("a", "b", "c", data) # }
Run the code above in your browser using DataCamp Workspace