How to replicate my analysis
- Clone the repo!
- Download into an empty directory:
- Input data:
Terrorism Dataset
. This file is modified from the original data by removing unnecessary text columns, so it won't give error when loading into R. - Scripts:
dataPrep.r
,plotByGroup.r
, andplotByCountry.r
- Makefile script:
Makefile
- Input data:
- Start a fresh RStudio session, make sure the above directory is the working directory, open
Makefile.r
, and click on "Source". - Alternatively, in a shell:
Rscript Makefile.r
. - When you run the pipeline the first time, you will get warnings about
file.remove()
trying to remove files that don't exist. That's OK. They will exist and will be removed and remade on subsequent runs. - New files you should see after running the pipeline (Some of the files are quite ugly, and the better ones are included in the html report):
figure//group_impact_bar.png
figure//group_impact_violin.png
figure//group_pKilledvsAttacks.png
figure//region_attacksVsKilledMiddleEast.png
figure//region_attacksVsKilledRegional.png
figure//region_numAttackesVsNumKilled.png
figure//region_SouthAsiaTotalAttackes.png
- stat545a-2013-hw06_gao-wen.html which can be previewed here