R

1 posts
Send postcards of plots made in R

How many times have you made a plot in R and thought, “I wish I could send this as a postcard to my best friend.” Probably a million times, right? Wish no more. The ggirl package (that’s gg-in real life for short) by Jacqueline Nolis lets you send a plot over the internets to a postcard API, which sends a physical card to an address you specify. Tags: ggirl, ggplot2,...

0 0
✚ How to Make Ternary Plots in R, with ggplot2

When you want to compare between three parts of your data, ternary plots might be a good option. Here is how to make them. Read More

0 0
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