This repo contains code from different books/sources. They are:
- Exploratory Data Analysis (EDA) course at Indiana University (STAT-S 670)
- R for Data Science code snippets
- Data Analysis with R by Udacity
With R and RStudio installed on your local machine the packages required to run the code in this repo can be installed using the commands below in a RStudio. (Note: It is not recommended to install R using homebrew on macOS)
my_packages <- c("tidyverse", "broom", "coefplot", "cowplot",
"gapminder", "GGally", "ggrepel", "ggridges", "gridExtra",
"here", "interplot", "margins", "maps", "mapproj",
"mapdata", "MASS", "quantreg", "rlang", "scales",
"survey", "srvyr", "viridis", "viridisLite", "devtools")
install.packages(my_packages, repos = "http://cran.rstudio.com")
library('devtools')
devtools::install_github("kjhealy/socviz")
- R for Data Science by Garrett Grolemund, Hadley Wickham
- Data Visualization: A Practical Introduction by Kieran Healy
- Visualizing Data by William Cleveland