# Cargamos paquetes sugeridos
library(tm)
library(igraph)
library(data.table)
# Y el paquete con los datos
library(labinstrumentos)
# Descargamos la ultima versión de los datos
lab_instrumentos <- obtener_datos()[region == 1]
# Variables de interés
vars <- c("clean_problema", "clean_causa", "clean_consecuencia", "clean_soluciones")
# Eliminamos el término macrozona-austral por se muy influyente
lab_instrumentos[j = (vars) := lapply(.SD, gsub, pattern = "macrozona-austral", replacement = ""),
.SDcols = vars]
# Eliminamos el término anid por se muy influyente
lab_instrumentos[j = (vars) := lapply(.SD, gsub, pattern = "anid", replacement = ""),
.SDcols = vars]
Problemas
Gráfico de redes circular
![](network_sin_anid_files/figure-html/unnamed-chunk-4-1.png)
Score de Hubs
![](network_sin_anid_files/figure-html/unnamed-chunk-5-1.png)
Detección de comunidades
Algorítmo ‘Spinglass’
![](network_sin_anid_files/figure-html/unnamed-chunk-6-1.png)
Causas
Gráfico de redes circular
![](network_sin_anid_files/figure-html/unnamed-chunk-8-1.png)
Score de Hubs
![](network_sin_anid_files/figure-html/unnamed-chunk-9-1.png)
Detección de comunidades
Algorítmo ‘Spinglass’
![](network_sin_anid_files/figure-html/unnamed-chunk-10-1.png)
Consecuencias
Gráfico de redes circular
![](network_sin_anid_files/figure-html/unnamed-chunk-12-1.png)
Score de Hubs
![](network_sin_anid_files/figure-html/unnamed-chunk-13-1.png)
Detección de comunidades
Algorítmo ‘Spinglass’
![](network_sin_anid_files/figure-html/unnamed-chunk-14-1.png)
Soluciones
Gráfico de redes circular
![](network_sin_anid_files/figure-html/unnamed-chunk-16-1.png)
Score de Hubs
![](network_sin_anid_files/figure-html/unnamed-chunk-17-1.png)
Detección de comunidades
Algorítmo Fast-Greedy
![](network_sin_anid_files/figure-html/unnamed-chunk-18-1.png)