worldbank / r-econ-visual-library

This is a repository maintained by DIME Analytics and containing example graphs on how to create graphs for data analysis of Impact Evaluations using R.
https://worldbank.github.io/r-econ-visual-library/
MIT License
45 stars 22 forks source link

BarPlotsTwoVariables: Updated the CSV and made minimal tidyverse changes #33

Open snadari opened 3 years ago

snadari commented 3 years ago

For the DiffinDiff_HISP I need someone to double check the objective and confirm that the "tidymodels" package is not needed. This is already noted in the CSV.

snadari commented 3 years ago

So for BarPlotsMultipleVariables the dataset used is currently data <- readRDS("~/Documents/GitHub/DIME/Code_Reviews/CodeReview_r-econ-visual-library/r-econ-visual-library/Library/BarPlotsMultipleVariables.rds") but a) that doesn't load properly and b) I can't find it. When I replace the dataset with what was on the website data <- read_dta("https://github.com/worldbank/r-econ-visual-library/raw/master/Library/Data/BarPlotsMultipleVariables.dta") the graph looks very strange. Not to mention when using the dta file, the overview of the code makes no sense with the graph that is outputted.

snadari commented 3 years ago

RDDCI: For the uncommented section at the bottom of the graph (#This is easier but less customizable) the code outputs the following graph which isn't that pretty. Do you want me to keep this code? image