Este notebook presenta un análisis de interpolación espacial del carbono orgánico del suelo (SOC) en el municipio del Meta, Colombia. El análisis se realiza siguiendo la guía académica del profesor Iván Lizarazo, en la Facultad de Ciencias Agrarias de la Universidad Nacional de Colombia. Se aplican los métodos de interpolación IDW (Distancia Inversa Ponderada) y Kriging Ordinario.
## Reading layer `mgn_adm_mpio_grafico' from data source
## `C:\Users\vidam\Downloads\Municipio Meta.gpkg' using driver `GPKG'
## Simple feature collection with 29 features and 11 fields
## Geometry type: MULTIPOLYGON
## Dimension: XY
## Bounding box: xmin: -74.93335 ymin: 1.617732 xmax: -71.07753 ymax: 4.899101
## Geodetic CRS: WGS 84
## Reading layer `puntos_vectoriales' from data source
## `C:\Users\vidam\Downloads\socmeta.gpkg' using driver `GPKG'
## Simple feature collection with 2339260 features and 1 field
## Geometry type: POINT
## Dimension: XY
## Bounding box: xmin: -74.9318 ymin: 1.621266 xmax: -71.0795 ymax: 4.897252
## Geodetic CRS: WGS 84
## [1] 2000
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 0.0 0.0 107.0 104.9 155.0 871.0
Distribución del SOC
Interpretación: El histograma muestra la frecuencia de valores de SOC en los puntos muestreados. Se observa una distribución moderadamente sesgada, con valores más frecuentes entre 20% y 40% de SOC.
samples$SOC.PUNTOS <- round(samples$SOC.PUNTOS, 2)
pal <- colorNumeric(
palette = c("#E1F5C4", "#EDE574", "#F9D423", "#FC913A", "#FF4E50"),
domain = samples$SOC.PUNTOS
)
leaflet() %>%
addProviderTiles("OpenStreetMap") %>%
addPolygons(data = municipio, color = "gray", weight = 1, fillOpacity = 0.2) %>%
addCircleMarkers(data = samples, radius = 1.5, label = ~SOC.PUNTOS,
color = ~pal(SOC.PUNTOS), fillOpacity = 1, stroke = FALSE) %>%
addLegend("bottomleft", pal = pal, values = samples$SOC.PUNTOS,
title = "SOC (%)", opacity = 0.9)