Error in `geom_split_violin(trim = FALSE, size = 0.5, show.legend = FALSE, 
    adjust = 2.2)`: Problem while converting geom to grob.
ℹ Error occurred in the 1st layer.
Caused by error in `loadNamespace()`:
! there is no package called 'plyr'

test_that("split_violin_plot works with valid input", {
value = c(rnorm(100, mean = 0), rnorm(100, mean = 1), rnorm(100, mean = 2)),
split_criteria = sample(c(TRUE, FALSE), 300, replace = TRUE)
labels <- c("TRUE" = "first group", "FALSE" = "second group")
p <- split_violin_plot(data, "group", "value", "split_criteria", colors, labels = labels)
expect_true(!is.null(p), info = "The plot object should not be NULL")
test_that("axis labels are customizable", {
p <- split_violin_plot(data, "group", "value", "split_criteria", colors,
test_that("y-axis breaks and limits can be customized", {
test_that("outliers can be included or excluded", {
p <- split_violin_plot(data, "group", "value", "split_criteria", colors, outliers = FALSE)
test_that("confidence intervals (CI) can be toggled", {
p <- split_violin_plot(data, "group", "value", "split_criteria", colors, CI = FALSE)
test_that("medians can be included or excluded", {
p <- split_violin_plot(data, "group", "value", "split_criteria", colors, median = FALSE)
test_that("number of observations (n) can be toggled", {
p <- split_violin_plot(data, "group", "value", "split_criteria", colors, n_obs = TRUE)
test_that("custom legend labels are applied", {
labels <- c("TRUE" = "First Group", "FALSE" = "Second Group")

"split_violin_plot works with valid input"
"y-axis breaks and limits can be customized"
"confidence intervals (CI) can be toggled"
"number of observations (n) can be toggled"

split_violin_plot works with valid input

y-axis breaks and limits can be customized

confidence intervals (CI) can be toggled

number of observations (n) can be toggled