Using R, we look at how your decreased interaction with others can help slow the spread of infectious diseases.
R
-
How to Flatten the Curve, a Social Distancing Simulation and Tutorial
-
R turned 20 years old
R turned 20 last week. The first public release of R was on…
-
Members Only
How to Visualize Hierarchical Graphs in R, with ggraph and tidygraph
Network graphs are a good way to find structure and relationships within hierarchical data. Here are several ways to do it.
-
Scripts from The Office, the dataset
The decade is almost done. You’re sitting there and you’re thinking: “I wish…
-
Members Only
How to Make a Grid Map with Histograms in R, with ggplot
Layout multiple charts in a single view. Then adjust the scales appropriately for maximum comparability and a unified graphic.
-
Members Only
How to Draw Maps with Hatching Lines in R
Fill areas with varying line density to give more or less visual attention. With geographic maps, the technique is especially useful to adjust for population density.
-
Teaching R to 7th graders
Joshua Rosenberg describes his one-day experience teaching R to 7th graders:
[T]he activity… -
Members Only
How to Make a Bump Chart in R, with ggplot
Visualize rankings over time instead of absolute values to focus on order instead of the magnitude of change.
-
Detailed generative art in R
Thomas Lin Pedersen has been sharing his generative art pieces as of late:…
-
Optimizing a Pokémon team with simulation
Emily Robinson recently took up Pokémon on Nintendo Switch:
I recently started playing… -
Members Only
How to Make a Polar Density Plot in R
With cyclical data, a circular format might be useful. Combine that with a smooth density to reduce noise, and you got yourself a plot.
-
Members Only
How to Make Baseline Charts in R
By shifting the baseline to a reference point, you can focus a line chart on relative change, which can improve the visibility of smaller categories.
-
Members Only
Select Your Weapon (The Process #48)
Some people love the Tidyverse in R. Others are less fond of it. For me, the more tools the better.
-
What is R, what it was, and what it will become
Roger Peng provides a lesson on the roots of R and how it…
-
Damian Lillard’s Game-Winner in Context
Here are all the playoff threes he’s made in his playoff career, plus some R code.
-
Members Only
How to Make a Bump Chart in R
Visualize rankings over time instead of absolute values to focus on order instead of the magnitude of change.
-
Hatching image effect in R
Here’s a fun thing to try in R. Jean Fan posted some code…
-
Members Only
How to Make Dot Timelines in R
For when you want to show the occurrence of events over time.
-
Members Only
How to Make a Mosaic Plot in R
Also known as a Marimekko diagram, the mosaic plot lets you compare multiple qualitative variables at once. They can be useful, sometimes.
-
Members Only
How to Make Animated (GIF) Heatmaps in R
Using color as the visual encoding, show changes over time in two dimensions.