R

36 posts
Spike maps in R

Spike maps use the height of spikes to encode data geographically. The format provides a similar effect to frequency trails where the layering looks 3-D-ish, except spikes are typically centered on an area instead of running parallel. Anyways, like most visualization methods with a name, there is an R package for spike maps by Timothée Giraud. If D3.js is your jam, there’s also a solution for that. You can also...

0 0
A Succinct Intro to R

Before you get into analysis and visualizing data with R, you need to know the basics. Steve Haroz wrote a guide on getting started: This book is a short introduction to the R language. It covers the basics of R that are not covered by analysis and visualization guides like R for Data Science. Consider it a quick way to get up to speed on R before diving into the...

0 0
✚ How to Make Print-ready Graphics in R, with ggplot2

ggplot2 provides sensible default settings for analysis, but when you make charts for a publication, you often need to match an existing style and shift focus to readability over exploration. Design around a message or results instead of leaving interpretation open-ended. Finally, you need to export your charts in the required file format with the correct dimensions and resolution. Become a member for access to this — plus tutorials, courses,...

0 0
Generative art with R

Generative art seems to be having a moment right now, so it’s only appropriate that there’s an R package to help you make some. The aRtsy package by Koen Derks makes algorithms more straightforward to use. Set parameters and you’re off. Tags: generative art, R

0 0
✚ How to Use Packed Circles in R

Circle packing in visualization is a way to arrange circles in a fixed space so that none of the circles overlap, and if you were to increase the radius of any circle, it’d overlap with a neighbor. This can be a useful method to have in your toolbox to make various types of charts or to make existing charts more readable. Become a member for access to this — plus...

0 0
Value of R, the Statistics-specific language

Paul Ford has been learning R to better understand the field of Statistics. The takeaway: Deep in its heart, R is a language for making charts, and it’s genuinely fun to go into its world: statistics, natural sciences, sociology — all right there. You will never pry me away from JavaScript or Python or the whole web stack of standards and protocols. They’re how I make things happen in the...

0 0
Average color of geographic areas

Based on satellite imagery, Erin Davis found the average color of places around the world. The above is by county in the United States, but Davis also made maps by country, which are a mix of greens, browns, and yellows. See also the NYT piece from 2020, which framed color by political leaning. Tags: color, Erin Davis, R, satellite imagery

0 0
✚ How to Make Alluvial Diagrams

An alluvial diagram is a type of flow chart that is useful to show change over time. You see how individual categories and how the composition of the categories shift. Incorporate ranking into the mix at each time segment, and you get a good idea of how order changes over time too. The geometry is like a combination of a stacked bar chart and a bump chart. I made a...

0 0
Transform an image into a pixel-ly visual

Here’s a fun interactive by Duc-Quang Nguyen. Upload an image and get back a transformed visual that uses dots, lines, or ascii. Use the menu options to easily change resolution, colors, and shapes. It’s a combination of Georgios Karamanis’s code and Elana Levin Schtulberg’s experiment of the same ilk. Tags: Duc-Quang Nguyen, pixels, R

0 0
✚ Making a Quick, Custom Prevalence Map – The Process 139

Welcome to issue #139 of The Process, the newsletter for FlowingData members where we look at how the charts get made. I’m Nathan Yau, and this week I’m describing my process behind a quick map. You can download the code at the end of this issue. Become a member for access to this — plus tutorials, courses, and guides.

0 0