File: test-6-ggdendrogram.R

package info (click to toggle)
r-cran-ggdendro 0.1.22%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 368 kB
  • sloc: sh: 13; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 254 bytes parent folder | download
1
2
3
4
5
6
7
8
test_that("ggdendrogram plots and accepts ... parameters", {
  require(ggplot2)
  hc <- hclust(dist(USArrests), "ave")
  p1 <- ggdendrogram(hc)
  expect_s3_class(p1, "ggplot")
  p2 <- ggdendrogram(hc, size = 2)
  expect_s3_class(p2, "ggplot")
})