tests/testthat/test-densmap.R

test_that("densmap works", {
    x <- matrix(rnorm(1e3), nrow = 100)
    expect_is(densmap(x), "matrix")
    Y_init <- prcomp(x)$x[, 1:2]
    expect_is(densmap(x, Y_init = Y_init), "matrix")
})

Try the densvis package in your browser

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

densvis documentation built on Jan. 28, 2021, 2:01 a.m.