plotrr (version 1.0.0)

violinplots: Creates violin plots for the relationship between two measures for each group/unit

Description

Returns violin plots for the relationship between two measures for each group/unit.

Usage

violinplots(x, y, group, data)

Arguments

x

A vector.

y

A vector.

group

A vector that contains unit/group identifiers.

data

A data frame.

Value

Violin plots for the relationship between two measures for each group/unit.

Examples

Run this code
# 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