context("geom_surface.R")
test_that("shortest paths", {
surface <- raster::raster( matrix(c(1,3,4,3,1,2,3,4,1,2,2,3,3,2,3,1), nrow=4) )
p <- geom_surface( surface )
expect_that( p, is_a("ggproto"))
expect_that( p, is_a("LayerInstance"))
expect_that( p, is_a("Layer"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.