References

Arnold, Jeffrey B. 2021. Ggthemes: Extra Themes, Scales and Geoms for Ggplot2. https://github.com/jrnold/ggthemes.
Bache, Stefan Milton, and Hadley Wickham. 2020. Magrittr: A Forward-Pipe Operator for r. https://CRAN.R-project.org/package=magrittr.
Bivand, Roger, and Nicholas Lewin-Koh. 2021. Maptools: Tools for Handling Spatial Objects. https://CRAN.R-project.org/package=maptools.
Brownrigg, Ray. 2021. Maps: Draw Geographical Maps. https://CRAN.R-project.org/package=maps.
Cheng, Joe, Bhaskar Karambelkar, and Yihui Xie. 2021. Leaflet: Create Interactive Web Maps with the JavaScript Leaflet Library. https://rstudio.github.io/leaflet/.
Dowle, Matt, and Arun Srinivasan. 2021. Data.table: Extension of ‘Data.frame‘. https://CRAN.R-project.org/package=data.table.
Henry, Lionel, and Hadley Wickham. 2020. Purrr: Functional Programming Tools. https://CRAN.R-project.org/package=purrr.
Kahle, David, Hadley Wickham, and Scott Jackson. 2019. Ggmap: Spatial Visualization with Ggplot2. https://github.com/dkahle/ggmap.
Kearney, Michael W. 2020. Rtweet: Collecting Twitter Data. https://CRAN.R-project.org/package=rtweet.
Lamstein, Ari. 2020. Choroplethr: Simplify the Creation of Choropleth Maps in r. www.choroplethr.com.
Meyer, David, Evgenia Dimitriadou, Kurt Hornik, Andreas Weingessel, and Friedrich Leisch. 2021. E1071: Misc Functions of the Department of Statistics, Probability Theory Group (Formerly: E1071), TU Wien. https://CRAN.R-project.org/package=e1071.
Müller, Kirill, and Hadley Wickham. 2021. Tibble: Simple Data Frames. https://CRAN.R-project.org/package=tibble.
R Core Team. 2021. R: A Language and Environment for Statistical Computing. Vienna, Austria: R Foundation for Statistical Computing. https://www.R-project.org/.
———. 2022. Foreign: Read Data Stored by Minitab, s, SAS, SPSS, Stata, Systat, Weka, dBase, ... https://svn.r-project.org/R-packages/trunk/foreign/.
Ram, Karthik, and Hadley Wickham. 2018. Wesanderson: A Wes Anderson Palette Generator. https://github.com/karthik/wesanderson.
Rudis, Bob. 2020. Hrbrthemes: Additional Themes, Theme Components and Utilities for Ggplot2. http://github.com/hrbrmstr/hrbrthemes.
Sievert, Carson, Chris Parmer, Toby Hocking, Scott Chamberlain, Karthik Ram, Marianne Corvellec, and Pedro Despouy. 2021. Plotly: Create Interactive Web Graphics via Plotly.js. https://CRAN.R-project.org/package=plotly.
Spinu, Vitalie, Garrett Grolemund, and Hadley Wickham. 2021. Lubridate: Make Dealing with Dates a Little Easier. https://CRAN.R-project.org/package=lubridate.
Wickham, Hadley. 2020. Httr: Tools for Working with URLs and HTTP. https://CRAN.R-project.org/package=httr.
———. 2021a. Tidyr: Tidy Messy Data. https://CRAN.R-project.org/package=tidyr.
———. 2021b. Tidyverse: Easily Install and Load the Tidyverse. https://CRAN.R-project.org/package=tidyverse.
Wickham, Hadley, and Jennifer Bryan. 2019. Readxl: Read Excel Files. https://CRAN.R-project.org/package=readxl.
Wickham, Hadley, Winston Chang, Lionel Henry, Thomas Lin Pedersen, Kohske Takahashi, Claus Wilke, Kara Woo, Hiroaki Yutani, and Dewey Dunnington. 2021. Ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics. https://CRAN.R-project.org/package=ggplot2.
Wickham, Hadley, Romain François, Lionel Henry, and Kirill Müller. 2021. Dplyr: A Grammar of Data Manipulation. https://CRAN.R-project.org/package=dplyr.
Wickham, Hadley, Jim Hester, and Jennifer Bryan. 2021. Readr: Read Rectangular Text Data. https://CRAN.R-project.org/package=readr.
Wickham, Hadley, and Evan Miller. 2021. Haven: Import and Export SPSS, Stata and SAS Files. https://CRAN.R-project.org/package=haven.
Xie, Yihui. 2021a. Bookdown: Authoring Books and Technical Documents with r Markdown. https://CRAN.R-project.org/package=bookdown.
———. 2021b. Knitr: A General-Purpose Package for Dynamic Report Generation in r. https://yihui.org/knitr/.
———. 2021c. Printr: Automatically Print r Objects to Appropriate Formats According to the Knitr Output Format. https://yihui.org/printr/.
Xie, Yihui, Joe Cheng, and Xianying Tan. 2021. DT: A Wrapper of the JavaScript Library DataTables. https://github.com/rstudio/DT.
Zeileis, Achim, Gabor Grothendieck, and Jeffrey A. Ryan. 2021. Zoo: S3 Infrastructure for Regular and Irregular Time Series (z’s Ordered Observations). https://zoo.R-Forge.R-project.org/.
Zhu, Hao. 2021. kableExtra: Construct Complex Table with Kable and Pipe Syntax. https://CRAN.R-project.org/package=kableExtra.

  1. There are other IDEs you could experiment with, such as Atom, Sublime Text, Visual Studio Code. RStudio has a very robust and vast ecosystem that, in my experience, comes in handy to speed up the learning process.↩︎

  2. If you use cache = TRUE you may need to knit the file a couple of times for any changes in the code to catch. This does not happen often but is something to pay attention to.↩︎

  3. Towards the end of this text you will see how to utilize APIs to grab data, as well as a basic overview of scraping websites (when legally permissible).↩︎

  4. You can read more about these (and other components) that combine to create the grammar of graphics here and here.↩︎

  5. For more on their roots see here.↩︎

  6. IQR = the interquartile range, which is \(= Q_3 - Q_1\)↩︎

  7. The Regional data are problematic in terms of the API but more on that later.↩︎

  8. There was no Summary File 3 generated for 2010.↩︎

  9. Note that in your case scientific notation (the default) may be visible whereas in my case scientific notation has been disabled.↩︎

  10. Be sure to follow the instructions for installing the fonts and importing them into R↩︎