data("popIT")
it <- IT(data = popIT, unit = "provincia", year = "2019", check.unit.names = FALSE)
###############
# Statics #
###############
mappingIT(data = it, var = "totale")
# \donttest{
mappingIT(data = it, var = "totale", subset = ~I(regione == "Lazio"))
mappingIT(data = it, var = "totale", facets = "ripartizione")
mappingIT(data = it, var = c("maschi","femmine"))
mappingIT(data = it, var = "totale", typeStatic = "choro.cart")
mappingIT(data = it, var = "totale",
aggregation_unit = "ripartizione",
aggregation_fun = function(x) sum(x, na.rm = TRUE))
### Italy
it1 <- loadCoordIT()
mappingIT(data = it1)
# }
###############
# Interactive #
###############
mappingIT(data = it, var = "totale", type = "interactive")
# \donttest{
mappingIT(data = it, var = c("maschi", "femmine"), type = "interactive")
mappingIT(data = it, var = "totale", subset = ~I(regione == "Lazio"), type = "interactive")
mappingIT(data = it, var = "totale", type = "interactive",
aggregation_unit = "ripartizione",
aggregation_fun = function(x) sum(x, na.rm = TRUE))
# }
Run the code above in your browser using DataLab