test_that("dssSmooth2d works", {
x <- dssSmooth2d('iris$Sepal.Length', 'iris$Petal.Length', draw.image = TRUE)
x <- dssSmooth2d('iris$Sepal.Length', 'iris$Petal.Length', draw.image = TRUE, categories = 'iris$Species')
x <- dssSmooth2d('iris$Sepal.Length', 'iris$Petal.Length', draw.image = TRUE, categories = 'iris$Species',
emphasize_level = 2, datasources = opals)
expect_equal(names(x), c('lims', 'img'))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.