tests/testthat/test-geom_gene_label.R

context("geom_gene_label")

test_that("geom_gene_label can be added to a plot without error", {
  expect_no_error( {
  p <- ggplot2::ggplot(
    example_genes,
    ggplot2::aes(xmin = start, xmax = end, y = molecule, label = gene)
  ) +
    geom_gene_arrow() +
    geom_gene_label() +
    facet_wrap(~ molecule, scales = "free", ncol = 1)
  print(p)
  } )
} )

Try the gggenes package in your browser

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

gggenes documentation built on Sept. 8, 2023, 5:43 p.m.