tests/testthat/test-per_branch_plot.R

test_that("per_branch_plot works", {

  ## Selecting child terms of
  ## "Abnormality of the nervous system" as background branches"
  plt <-  per_branch_plot(
      highlighted_branches = "Abnormality of nervous system physiology",
      ancestor = "Abnormality of the nervous system")
  testthat::expect_true(methods::is(plt,"gg"))
})
neurogenomics/HPOExplorer documentation built on Aug. 24, 2024, 1:39 a.m.