R/mapbiomas.R
load_mapbiomas.RdLoads information about land cover and use
load_mapbiomas(
dataset,
raw_data = FALSE,
geo_level = "municipality",
language = "eng"
)A dataset name ("mapbiomas_cover", "mapbiomas_transition", "mapbiomas_irrigation", "mapbiomas_deforestation_regeneration", "mapbiomas_secondary_vegetation", "mapbiomas_mining", "mapbiomas_water" or "mapbiomas_fire")
A boolean setting the return of raw (TRUE) or processed (FALSE) data.
A string that defines the geographic level of the data
For dataset "mapbiomas_cover", can be "municipality" or "indigenous_land"
For dataset "mapbiomas_transition", can only be "biome" ("municipality" is temporarily unavailable – MapBiomas no longer serves the municipality file)
For dataset "mapbiomas_deforestation_regeneration", can only be "municipality"
For dataset "mapbiomas_secondary_vegetation", can only be "municipality"
For dataset "mapbiomas_mining", can be "indigenous_land" or "municipality"
For dataset "mapbiomas_irrigation" (temporarily unavailable – MapBiomas no longer
publishes this file; see vignette("MAPBIOMAS")), can be "state" or "biome"
For dataset "mapbiomas_water", can be "municipality" or "biome" ("state" is currently unavailable – no MapBiomas collection publishes a state-level water sheet)
For dataset "mapbiomas_fire", can only be "state"
A string that indicates in which language the data will be returned. Portuguese ("pt") and English ("eng") are supported.
A tibble.
if (FALSE) { # interactive()
### DO NOT RUN ###
# download treated MapBiomas land cover data by municipality
data <- load_mapbiomas(
dataset = "mapbiomas_cover",
raw_data = FALSE,
geo_level = "municipality",
language = "eng"
)
# download treated data on mining on indigenous lands
data <- load_mapbiomas(
dataset = "mapbiomas_mining",
raw_data = FALSE,
geo_level = "indigenous_land",
language = "eng"
)
# download treated data on secondary vegetation by municipality
data <- load_mapbiomas(
dataset = "mapbiomas_secondary_vegetation",
raw_data = FALSE,
geo_level = "municipality",
language = "eng"
)
}