test_that("Choropleth", {
data <- data.frame(pais = c("Colombia", "Argentina", "Russia"), value = c(10, 20, 30))
hgch_choropleth(data, "value")
data <- data.frame(pais = c("Colombia", "Argentina", "Russia"),
riesgo = c("bajo", "medio", "alto"),
color = c("green", "yellow", "orange"))
hgch_choropleth(data, "riesgo", legend_cat_order = c("medio", "bajo", "alto"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.