data("popEU")
popEU <- popEU
euNuts2 <- EU(data = popEU, colID = "GEO",unit = "nuts2",matchWith = "id")
###############
# Statics #
###############
mappingEU(data = euNuts2, var = "total")
mappingEU(data = euNuts2, var = c("male","female"))
mappingEU(data = euNuts2, var = "total", subset = ~I(nuts0_id == "IT"))
mappingEU(data = euNuts2, var = "total",
subset = ~I(nuts0_id == "ES"), facets = "nuts2")
# \donttest{
mappingEU(data = euNuts2, var = "total", typeStatic = "choro.cart")
mappingEU(data = euNuts2, var = "total", aggregation_unit = "nuts0", aggregation_fun = sum)
mappingEU(data = euNuts2, var = c("male","female"),
aggregation_unit = "nuts0", aggregation_fun = sum)
### Europe
eu1 <- loadCoordEU()
mappingEU(data = eu1)
# }
###############
# Interactive #
###############
# \donttest{
mappingEU(data = euNuts2, var = "total", type = "interactive")
mappingEU(data = euNuts2, var = c("male","female"), type = "interactive")
mappingEU(data = euNuts2, type = "interactive",
var = "total", subset = ~I(nuts0_id == "IT"))
mappingEU(data = euNuts2, var = "total", type = "interactive",
subset = ~I(nuts0_id == "ES"))
mappingEU(data = euNuts2, var = "total", type = "interactive")
mappingEU(data = euNuts2, var = "total", type = "interactive",
aggregation_unit = "nuts0",
aggregation_fun = sum)
mappingEU(data = euNuts2, var = c("male","female"), type = "interactive",
aggregation_unit = "nuts0", aggregation_fun = sum)
# }
Run the code above in your browser using DataLab