Debian Codegraph @

tests/testthat/test-6-ggdendrogram.R

raw
1 test_that("ggdendrogram plots and accepts ... parameters", {
2 require(ggplot2)
3 hc <- hclust(dist(USArrests), "ave")
4 p1 <- ggdendrogram(hc)
5 expect_s3_class(p1, "ggplot")
6 p2 <- ggdendrogram(hc, size = 2)
7 expect_s3_class(p2, "ggplot")
8 })