context("test-labelsfrombrusheddendrogram")
a <- as.dendrogram(hclust(dist(mtcars)))
test_that("multiplication works", {
expect_identical(labelsFromBrushedDendrogram(dendrogram = a,
brushYmin = 1,
brushYmax = 5),
c("Chrysler Imperial", "Cadillac Fleetwood", "Lincoln Continental"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.