test_that("`plot_moran()` works", {
data(plant_richness_df)
data(distance_matrix)
rf.model <- rf(
data = plant_richness_df,
dependent.variable.name = "richness_species_vascular",
predictor.variable.names = colnames(plant_richness_df)[5:21],
distance.matrix = distance_matrix,
distance.thresholds = c(0, 1000, 2000),
verbose = FALSE
)
p <- plot_moran(rf.model, verbose = FALSE)
expect_equal(inherits(p, "ggplot"), TRUE)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.