1. INTRODUCCION

TEXTO

2. Configuracion

texto

library(sf)
## Warning: package 'sf' was built under R version 4.2.3
## Linking to GEOS 3.9.3, GDAL 3.5.2, PROJ 8.2.1; sf_use_s2() is TRUE
library(dbplyr)
## Warning: package 'dbplyr' was built under R version 4.3.0
library(ggplot2)
## Warning: package 'ggplot2' was built under R version 4.3.0
library(ggspatial)
## Warning: package 'ggspatial' was built under R version 4.2.3

3. leer y escribir datos

texto

list.files("MUNICIPIOS")
## [1] "MGN_ADM_MPIO_GRAFICO.cpg"     "MGN_ADM_MPIO_GRAFICO.dbf"    
## [3] "MGN_ADM_MPIO_GRAFICO.prj"     "MGN_ADM_MPIO_GRAFICO.sbn"    
## [5] "MGN_ADM_MPIO_GRAFICO.sbx"     "MGN_ADM_MPIO_GRAFICO.shp"    
## [7] "MGN_ADM_MPIO_GRAFICO.shp.xml" "MGN_ADM_MPIO_GRAFICO.shx"

AQUI VA TEXTO

colombia <- st_read("MUNICIPIOS/MGN_ADM_MPIO_GRAFICO.shp")
## Reading layer `MGN_ADM_MPIO_GRAFICO' from data source 
##   `C:\Users\usuagro\Documents\GB2\P3\MUNICIPIOS\MGN_ADM_MPIO_GRAFICO.shp' 
##   using driver `ESRI Shapefile'
## Simple feature collection with 1121 features and 11 fields
## Geometry type: MULTIPOLYGON
## Dimension:     XY
## Bounding box:  xmin: -81.73562 ymin: -4.229406 xmax: -66.84722 ymax: 13.39473
## Geodetic CRS:  MAGNA-SIRGAS

nmmmmmmmmmmmmmmmmmm

colombia