Pruebita vas a ver

#Test

R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

Including Plots

You can also embed plots, for example:

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.

library(ggplot2)
library(treemapify)
library(hrbrthemes)
ARG_sociosX <- readRDS("/Users/fernandogarciadiaz/Dropbox/Trabajo/EconomiaComplejidad/ARG_sociosX.rds")
g <- ggplot( data = ARG_sociosX , aes(area = export_val/1000000 , fill = region, subgroup = region)) +
  treemapify::geom_treemap(color = "white", size = 1 , alpha = 1) +
  geom_treemap_text(aes(label = country) , color = "black", size = 10 , family = font_rc) +
  geom_treemap_subgroup_border(color = "white", size = 2) + 
  geom_treemap_subgroup_text(color = "darkgray", grow = FALSE , size = 15, , place = "bottomleft", family = font_rc, fontface = "bold", alpha = 0.7) +
  scale_fill_brewer(palette = "Set1", guide = FALSE) + 
  scale_color_brewer(palette = "Set1", guide = FALSE) + theme_ipsum_rc() +
  labs(title = "Destino de exportaciones industriales argentinas (SITC 5 al 8) - Año 2014", 
     caption = "Fuente: F.García Díaz en base a COMTRADE")
dim(ARG_sociosX)
## [1] 179  16
g

comments powered by Disqus