tests/testthat/test-layout.R

context("layout")

data("nba_clusts")

test_that("non-core layout works", {
    expect_is(clustree(nba_clusts, prefix = "K", use_core_edges = FALSE),
              c("gg", "ggplot"))
})

test_that("highlighting core works", {
    expect_is(clustree(nba_clusts, prefix = "K", highlight_core = TRUE),
              c("gg", "ggplot"))
})

Try the clustree package in your browser

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

clustree documentation built on Nov. 6, 2023, 1:07 a.m.