Hace unas semanas tuve la suerte de poder asistir a un curso organizado por INDEC-CEPED, brindado por auténticos referentes en all things R: Natsumi Shokida, Diego Kozlowski y Guido Weksler. Ahí se trabjó la aplicación de R para el análisis de la Encuesta Permanente de Hogares (EPH), una de las herramientas más valiosas que tiene el Instituto.
Esta herramienta releva información de 31 aglomerados del país de manera trimestral y es fundamental para observar cómo evolucionan indicadores de pobreza, trabajo y hábitat de una manera mucho más periódica que el censo.
El portal Buenos Aires Open Data (https://data.buenosaires.gob.ar) tiene un montón de datasets súper interesantes y divertidos para experimentar. En esta ocasión, ví que está disponible uno en el que se relevan las obras públicas a lo largo del año, y decidí ver dónde se concentra la mayor parte de lo erogado.
Manos a la obra
Para empezar, cargo las librerías tidyverse, sf y ggthemes. La primera es la navaja suiza con la que se manipulan bases de datos y se visualizan, dado que incorpora ggplot2.
wordcloud2
{"x":{"word":["cuerpo","personas","encuesta","atención","baratas","buscar","casi","darle","empiezan","encuentro","entradas","identificación","lugares","miles","partir","perdido","público","reírte","tema","actor","argentina","argentinos","charla","cine","consumimos","consumo","cultura","director","equipo","habló","martinpiro","modo","previo","realizó","sincalic","ahora","asociarse","cada","carolinaduek1","ccd","ccdelaciencia","chicos","compra","comunidad","culpa","cultural","debate","deciden","decisiones","día","encontr","encontrás","escuchá","escuchocongo","financi","formas","fragmentada","generamos","gran","marturua","nichos","nuevas","parte","prejuicio","presentación","presentamos","redes","sentirse","sostuvo","tener","testimonio","apue","aspectos","buen","cha","chad1uelvy","colectivo","consumoscult","ct5gby9psj","culturales","deba","desafío","diarios","entender","ex9knxay3e","financiamiento","financiar","gejce6dcay","gracias","grandes","historias","ho","hoy","instagram","invitarme","laburo","leen","marcas","medio","mesas","moderar","música","nsclauzero","nuevo","ofert","oferta","papel","pensamos","pensar","pienso","podcast","presentamo","puedan","quedo","trabajo","ve","x3dnwj4k38",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"freq":[8,6,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"fontFamily":"Segoe UI","fontWeight":"bold","color":"random-dark","minSize":0,"weightFactor":null,"backgroundColor":"white","gridSize":8,"minRotation":-0.785398163397448,"maxRotation":0.785398163397448,"shuffle":true,"rotateRatio":0.4,"shape":"circle","ellipticity":0.65,"figBase64":null,"hover":null},"evals":[],"jsHooks":{"render":[{"code":"function(el,x){\n console.log(123);\n if(!iii){\n window.location.reload();\n iii = False;\n\n }\n }","data":null}]}}
{"viewer":{"width":450,"height":350,"padding":0,"fill":true},"browser":{"width":960,"height":500,"padding":0,"fill":true}}
wordcloud2
{"x":{"word":["noesno","mujeres","hoy","metoo","ahora","denuncia","niunamenos","mirácómonosponemos","thelma","abuso","actrices_arg","ser","ser","argentina","años","mujer","basta","actrices","marido","todas","vikidonda","violencia","colectivo","miracomonosavivamos","mirácomonosponemos","miedo","juan","nonoscallamosmas","soythelmafardin","darthes","hace","sevaacaer","va","violadores","buenmiercoles","cada","denuncias","después","gracias","siempre","violación","darthés","día","nunca","tener","acoso","callamos","decir","dice","género","movimiento","sexual","tipo","vozciudadana3","bien","cómo","días","gente","grisici","justicia","mas","metooargentina","quiero","video","argentinas","creo","denuncian","hablar","mirá","pibas","thelmafardin","vez","aborto","abusos","acá","así","calle","favor","feminista","persona","solo","solo","van","ver","denunció","fardin","fuerza","impunidad","leymicaela","mira","nadie","patriarcado","salir","sociedad","vamos","vida","actriz","ariel","asnicar","brenda","che","dicen","donda","historia","hizo","marchetti","medios","palabras","primera","puede","respecto","silencio","tan","ayuda","casa","chicas","cultura","da","geraldine","hacer","hermana","hombres","in","luego","metoo","miren","momento","neumann","nota","novio","país","palacios","propia","relato","roferrerilustra","vbluesciudadano","vos","voy","agustinlaje","amiga","asco","buenos","chica","debe","dijo","escribió","felizmiercoles","hacen","juntas","laura","macho","mañana","meetoo","nacional","noche","parece","patriarcal","piba","poder","poder","ponemos","protocolo","rodríguez","sólo","argentine","bastante","caer","callar","campaña","cargo","causa","claro","claro","colectiva","compañera","cosas","cuento","derecho","derecho","ex","feminismo","foto","frente","frente","fuerte","fuerte","ganas","hacia","hdp","hombre","iba","importante","ir","jornada","juandarthes","laliespos","legal","lucha","machitos","madre","manera","mano","mierda","mundo","necesitamos","ninguna","pablo","pasa","paso","política","productor","productor","pueden","red__accion","senador","sexo","sola","sos","tema","tiempo","tomar","une","verdad","vergüenza","violador","vivir","voz","xq","yositecreo","youtube","abusada","abusador","acosadas","actor","año","apoyo","après","artística","ca","cambiar","cámpora","casos","colère","cualquier","cuenta","cuervotinelli","delito","delitos","dia","difundir","dos","enfermo","escracho","escuchando","falsas","fardín","feo","funcionario","genteonline","haber","hablamos","hacerlo","haciendo","hashtag","instigación","jorge","kirchner","llamado","machista","mal","marchettipedófilo","nabokov","niunamasniunamenos","noticia","nouvelle","novuelvenmas","ojalá","palabra","pasó","personas","pidiendo","podes","publico","queremos","quieren","re","realidad","recibí","redes","respuesta","saben","saber","saber","seguir","según","sigo","sindicato","situaciones","telefe","testimonio","toda","todxs","unimos","valientes","vas","vemos","víctimas","violada","abortolegal","abrazamos","abusaba","abusadores","abusar","abusosenlacampora","acabó","acusaron","ahí","almachoescracho","amigas","aquí","asi","ayer","basura","berazategui","bolivia","brendaasnicar","bueno","cae","calu","caso","cocinero","cok24gefqs","conductor","contar","creerle","culpa","dan","definitivamente","degenerado","dejo","dentro","despide","di","digo","dios","diputada","eltreceoficial","empezó","escracharlo","escuche","espero","estan","existe","experiencia","felizmiércoles","féministe","ficción","fraude","fuego","gobierno","hablando","hacemos","hagan","hija","hijas","hijo","hilo","hipocresía","hipócritas","hola","izquierda","leer","levanté","libre","línea","llegar","loqueesconunaescontodas","lugar","marino","menos","miles","mina","muchas","nicaragua","non","ojos","padres","parte","pasando","pasaron","pase","patito","plan","podemos","pone","pones","porqué","público","público","punto","pura","puta","qe","qu","quizás","recién","river","rodrigo","rosario","sale","showmatch","tal","texto","tipos","toca","valentía","víctima","viene","violaron","zurdas","aborteras","abusadas","abusosexual","acción","acercó","acuerdan","acusación","acusaciones","acusado","af82980208","afirma","alguien","altoescandalook","amor","andar","animará","animen","argentino","arielropalacios","artificial","asamblea","aún","belulombardiii","buen","buscando","cambio","catamarca","centro","cerro","chiques","cierto","clase","co","coip","comentarios","comparto","cómplices","comprado","comunicación","comunista","conciencia2015","conjunto","conoces","consulta","contó","cortaporlozano","cosa","courrierinter","cualquiera","cuándo","cuba","cuentas","cuidado","culpables","cultural","cura","dans","darthesjuan1","decidir","defiende","denunciar","detrás","diciendo","difundan","digan","dije","doble","dónde","dormir","ecuador","eguillor","encima","entrevista","equipo","escrache","escrito","escuchen","escuela","esperar"],"freq":[62,51,47,46,43,37,37,35,32,30,30,29,29,28,27,27,26,25,25,25,25,22,21,21,21,20,18,18,18,17,17,17,17,17,16,16,16,16,16,16,16,15,15,15,15,14,14,14,14,14,14,14,14,14,13,13,13,13,13,13,13,13,13,13,12,12,12,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,10,10,10,10,10,10,10,10,10,10,10,10,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3],"fontFamily":"Segoe UI","fontWeight":"bold","color":"random-dark","minSize":0,"weightFactor":1.45161290322581,"backgroundColor":"white","gridSize":8,"minRotation":-0.785398163397448,"maxRotation":0.785398163397448,"shuffle":true,"rotateRatio":0.4,"shape":"circle","ellipticity":0.65,"figBase64":null,"hover":null},"evals":[],"jsHooks":{"render":[{"code":"function(el,x){\n console.log(123);\n if(!iii){\n window.location.reload();\n iii = False;\n\n }\n }","data":null}]}}
{"viewer":{"width":450,"height":350,"padding":0,"fill":true},"browser":{"width":960,"height":500,"padding":0,"fill":true}}