tests/testthat/test-plots.R

test_that("Plotting functions return ggplot objects", {
  skip_if_not_installed("ggplot2")
  s <- "ATGCATGCATGCATGC"
  expect_s3_class(plot_gc_skew(paste0(s,s,s,s,s,s,s,s)), "ggplot")
  expect_s3_class(plot_aa_composition("MKFLVLALAL"), "ggplot")
  expect_s3_class(plot_hydrophobicity("MKFLVLALAL", window=3), "ggplot")
  expect_s3_class(plot_dotplot("ATGC", "ATGC"), "ggplot")
})

Try the baseq package in your browser

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

baseq documentation built on March 12, 2026, 1:07 a.m.