R

5 posts
Introducing a New Course on Mapping Geographic Data in R, with ggplot2

I’m happy to announce a new course on mapping geographic data in R, using the ggplot2 package. The course is by data journalist and visualization consultant Maarten Lambrechts, and it’s available immediately to FlowingData members. If you’re not a member yet, now is a great time to join. You get instant access to this course, plus four others and over a hundred in-depth visualization tutorials. For those who’ve read FlowingData...

0 0
R graphics get modern text support, with ragg package

Thomas Lin Pedersen announced the ragg package, which makes font usage in R more straightforward: I’m extremely pleased to present the culmination of several years of work spanning the systemfonts, textshaping, and ragg packages. These releases complete our efforts to create a high-quality, performant raster graphics device that works the same way on every operating system. This blog post presents our improvements to ragg’s font rendering so that it now...

0 0
Parsing a table from an image

Thomas Mock explains how to extract and parse data tables in image files via ImageMagick and R: There are many times where someone shares data as an image, whether intentionally due to software constraints (ie Twitter) or as a result of not understanding the implications (image inside a PDF or in a Word Doc). xkcd.com jokingly refers to this as .norm or as the Normal File Format. While it’s far...

0 0
Turn images into LEGO builds in R

The brickr package in R by Ryan Timpe takes an image, converts it to a mosaic, and then provides a piece list and instructions for the build. While not officially affiliated with the LEGO group, Timpe is a data scientist for LEGO, so it’s probably as close as you’re going to get to real deal. Timpe made a package a couple of years back, but when I went to use...

0 0
✚ How to Make Symbol-based Glyph Charts, with R Examples

Using geometric shapes as an encoding can provide another dimension to your charts. Read More

0 0
Making map art in R

If you can make maps in your software and customize the aesthetics, you can make map art. Esteban Moro outlined how he made a personalized map in R: For my map art, I wanted to create something more personal: a combination of those beautiful street maps with personal mobility. That is, the city and how we navigate it. In this tutorial, you’ll learn how to create those street maps for...

0 0
Presidential Plinko

To visualize uncertainty in election forecasts, Matthew Kay from Northwestern University used a Plinko metaphor. The height of each board is based on the distribution of the forecast, and each ball drop is a potential outcome. The animation plays to eventually shows a full distribution. See it in action. (And Kay made his R code available on GitHub.) Tags: election, Matthew Kay, Plinko, R, uncertainty

0 0
Friends sitcom transcript dataset

For your analytical perusal, Emil Hvitfeldt provides ten seasons’ worth of scripts from the Friends sitcom in an easy-to-use R package: The goal of friends to provide the complete script transcription of the Friends sitcom. The data originates from the Character Mining repository which includes references to scientific explorations using this data. This package simply provides the data in tibble format instead of json files. The ten seasons ran from...

0 0
✚ How to Untangle a Spaghetti Line Chart (with R Examples)

Put multiple time series lines on the same plot, and you quickly end up with a mess. Here are practical ways to clean it up. Read More

0 0
Using a slime mold simulation for generative art

Slime mold are single-celled organisms that can work together to form multicellular structures. Antonio Sánchez Chinchón used slime mold simulations generate these images: This post talks about a generative system called Physarum model, which simulates the evolution of a colony of extremely simple organisms that, under certain environmental conditions, result into complex behaviors. Apart from the scientific interest of the topic, this model produce impressive images like this one, that...

0 0