tests/testthat/test-main.R

library(ggplot2)
library(ggnormalviolin)
library(testthat)
d <- data.frame(
  Distribution = c("A", "B"),
  Distribution_mean = c(80, 90),
  Distribution_sd = c(15, 10)
)

test_that("example", {
  expect_silent(ggplot(data = d, aes(x = Distribution)) +
                  geom_normalviolin(aes(mu = Distribution_mean,
                                        sigma = Distribution_sd)))
})

Try the ggnormalviolin package in your browser

Any scripts or data that you put into this service are public.

ggnormalviolin documentation built on April 4, 2025, 1:50 a.m.