R

44 posts
Scripts from The Office, the dataset

The decade is almost done. You’re sitting there and you’re thinking: “I wish I could easily access the scripts from all seasons of The Office so that I could analyze the dialogue and relationships between characters.” Well, your wish is granted. Bradley Lindblad stuck all the scripts in an R package. It’s called schrute. Take that, 2019. Tags: R, scripts, The Office

0 0
✚ 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. Read More

0 0
✚ 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. Read More

0 0
Teaching R to 7th graders

Joshua Rosenberg describes his one-day experience teaching R to 7th graders: [T]he activity worked albeit, as a very gradual introduction to using R. In combination with starting with modest goals, having the right tools (R Studio Cloud, R Markdown, and a suitable data set), I think, helped to make this work. 7th-graders can (start to) use R. The goal that Alex and I have is for students to be able...

0 0
✚ 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. Read More

0 0
Detailed generative art in R

Thomas Lin Pedersen has been sharing his generative art pieces as of late: All my systems and visualisations are programmed in R, an open source programming language for statistics and data analysis. I’ve developed and released many tools that are central to my work, and help maintain others. Beautiful work. It really gets the imagination going for what else R can do. Check out Pedersen’s Instagram for more, and you...

0 1
Optimizing a Pokémon team with simulation

Emily Robinson recently took up Pokémon on Nintendo Switch: I recently started playing Pokémon again – “Pokémon Let’s Go Eevee” on the Nintendo Switch to be specific. In the classic Pokémon games, you have a team of 6 Pokémon that you use to battle against other trainers. In battles, type match-ups are very important, as some types of moves are “super effective” against other types. For example, fire moves are...

0 0
✚ 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. Read More

0 0
✚ 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. Read More

0 0
✚ 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. Read More

0 0