tests/testthat/test-PCAplot.R

test_that("PCAplot works", {
  expect_error(PCAplot(mtcars$cyl, mtcars), NA)
})

test_that("One plot can still use multiplot", {
  p <- ggplot2::ggplot(mtcars, aes(wt, mpg)) +
    ggplot2::geom_point()
  expect_error(multiplot(p), NA)
})
TalhoukLab/biostatUtil documentation built on April 14, 2025, 4:15 a.m.