Nothing
knitr::opts_chunk$set( collapse = TRUE, comment = "#>", dpi = 300, out.width = "100%" )
geoidep
currently allows you to work with data from Serfor's Satellite Tracking Unit.
However, this project is still under construction, for more information you can visit the GitHub official repository https://github.com/ambarja/geoidep.
If you want to support this project, you can support me with a coffee for my programming moments.
install.packages("geoidep")
Also, you can install the development version as follows:
install.packages('pak') pak::pkg_install('ambarja/geoidep')
library(geoidep)
providers <- get_data_sources(query = "Serfor") providers
incendio.forestal <- get_forest_fire_data(show_progress = FALSE) head(incendio.forestal)
library(sf) library(dplyr) library(ggplot2) stats <- incendio.forestal |> st_drop_geometry() |> filter(FECHA >= '2024-09-11') |> group_by(NOMDEP) |> summarise( total = n())
# Simple visualisation stats |> ggplot(aes(x = NOMDEP, y = total)) + geom_bar(stat = "identity") + coord_polar() + theme_minimal(base_size = 10) + labs(x="", y = "", caption = "Unidad de Monitoreo Forestales - SERFOR")
# Region boundaries download ucayali_dep <- get_departaments(show_progress = FALSE) |> subset(NOMBDEP == 'UCAYALI')
# The first five rows head(ucayali_dep)
# Data collection only within the regions of interest. ucayali.if <- st_filter(incendio.forestal, ucayali_dep) head(ucayali.if)
library(leaflet) library(leaflet.extras) ucayali.if |> leaflet() |> addProviderTiles(provider = "CartoDB.Positron") |> addHeatmap(radius = 10,minOpacity = 1)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.