File size: 429 Bytes
9aaa76b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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"))
})
|