Coding

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
Using noise in creative coding

Oftentimes visuals generated through code can seem cold and mechanical when you’re after something more warm that breathes life. Introducing organized noise into the mix is one path. Varun Vachhar describes how you might use noise in the context creative coding. Tags: noise, particles

0 0
Guide for React with D3.js

Amelia Wattenberger wrote a guide on how you can use the JavaScript library React with D3.js. I know next to nothing about the former, but probably should, so this was useful. Tags: Amelia Wattenberger, D3, JavaScript, React

0 0
Code (data) as therapy

For Wired, Craig Mod writes about how he uses code as a way to find order during less coherent times: Break the problem into pieces. Put them into a to-do app (I use and love Things). This is how a creative universe is made. Each day, I’d brush aside the general collapse of society that seemed to be happening outside of the frame of my life, and dive into search...

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
Small JavaScript library for density plots

Twitter released a small JavaScript library to make density plots — for when you have a lot of overlapping points and could use some granular binning. Feed a method an array of thousands of x-y coordinates, and the library takes care of the rest. Tags: JavaScript, Twitter

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
Tour of the D3 ecosystem

D3.js, a flexible JavaScript library useful for visualization, can feel intimidating at first. It does a lot. So Ian Johnson gave a talk on what the library provides, along with a tour of the essentials. Tags: d3js, Ian Johnson, tour

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