Nothing
net_exp = as_sfnetwork(roxel)
net_imp = as_sfnetwork(roxel, edges_as_lines = FALSE)
test_that("plot accepts sfnetworks with spatially implicit edges", {
pdf(NULL)
expect_silent(plot(net_imp, draw_lines = TRUE))
expect_silent(plot(net_imp, draw_lines = FALSE))
})
test_that("autplot returns a ggplot with two layers", {
skip_if_not_installed("ggplot2")
g = ggplot2::autoplot(net_exp)
expect_s3_class(g, "gg")
expect_s3_class(g, "ggplot")
expect_equal(length(g$layers), 2)
})
test_that("autoplot shows a message when implicit edges are passed", {
skip_if_not_installed("ggplot2", "3.0.0")
expect_message(
ggplot2::autoplot(net_imp),
"Spatially implicit edges are drawn as lines"
)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.