Embedding d3 Visuals in Rmarkdown

Background The purpose of this tutorial is to walk through using d3.js within an Rmd document that is then rendered as an HTML page with a Hugo static site generator. That was probably the most technical sentence of this entire write-up, so let’s all breath a sigh of relief now that we’re through with it. This is a quick release, so I’m not going to go into much detail about the process to get the data and what it fully represents just yet - I’m saving that for a deeper post with a “tbd” release date at this point.

Into the Tidyverse

Today’s purpose To walk through the tidyverse and become familiar with the functions that it provides the user and how it can make your life so much better to use. What the heck even is a tidyverse? tidyverse is a collection of R packages providing an all-inclusive resource for data science (well, almost). When you library(tidyverse) the following packages are loaded up as dependencies: Package Description ggplot2 Graphics-building package based on The Grammar of Graphics mapping aesthetics to data visually tibble Wrapper on traditional dataframes allowing for better printing and viewing data tidyr Package to easily and quickly get your data into a rectangular format (if not already in one) readr Super fast package for reading in rectangular data (like csv, tsv, and fwf) purrr A set of tools for working with functions and vectors for functional programming techniques dplyr Quickly and efficiently manipulate data with a Grammar of Manipulation (just made that up) Within each of these there are a handful of other dependencies - not all of which I am going to talk through.