Coding

25 posts
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
xkcd-style charts in JavaScript

For xkcd fans, here’s a JavaScript library by Tim Qian that lets you style your charts like xkcd. There’s something about sketchy, comic-style charts that makes the data feel more approachable. Maybe just because it’s different or looks more casual? I mean, I would use the style sparingly and maybe not in your next business meeting, but it’s kind of fun to mess with. You can also do this in...

0 0
Animating a lot of dots with WebGL and REGL.js

A couple of weeks ago, The Washington Post visualized 13,000 school districts using moving bubbles. Post graphics reporter Armand Emamdjomeh describes how they did it. Saving this for later. Tags: JavaScript, REGL, WebGL

0 0
Bird’s-eye view of D3.js

D3.js can do a lot of things, which provides valuable flexibility to construct the visualization that you want. However, that flexibility can also intimidate newcomers. Amelia Wattenberger provides a bird’s-eye view of the library to help make it easier to get started and gain a better understanding of what the library can do. Even if you’re already familiar with D3.js, it can serve as a useful reference. Tags: Amelia Wattenberger,...

0 0
Hatching image effect in R

Here’s a fun thing to try in R. Jean Fan posted some code snippets where you can load an image file and the result uses a hatching technique to recreate the image with shapes. See also: Using the traveling salesman problem to re-sketch images. Tags: hatching, R

0 0
Field Guide to the R Ecosystem

If you’re looking to acquaint yourself with R — the non-coding aspects of the language — the brief Field Guide to the R Ecosystem by Mark Sellers might help. Perhaps, you’re a hobbyist R user, who’d like to provide more information to your company in order to make a case for adopting R? Maybe you’re part of a support team who’ll be building out infrastructure to support R in your...

0 0
Introduction to regular expressions

If you want to analyze bodies of text, it’s a good to know how to use regular expressions. That way you can programmatically extract complex text patterns instead of marking and encoding items manually. Thomas Nield for O’Reilly provides an introduction: Many data science, analyst, and technology professionals have encountered regular expressions at some point. This esoteric, miniature language is used for matching complex text patterns, and looks mysterious and...

0 0
R data structures for Excel users

Introducing yourself to R as an Excel user can be tricky, especially when you don’t have much programming experience. It requires that you switch from one mental model of the data that exists in an interactive spreadsheet to one that exists in vectors and lists. Steph de Silva provides a translation of these data structures for Excel users. Tags: Excel, R

0 0
Drawing with noise

This looks like a fun Processing tutorial by Etienne Jacob. Use noise to draw organic-ish loopy GIFs. I bet the logic could be ported to R. Tags: GIF, noise, Processing

0 0
Scrollama.js, a JavaScript library for scrollytelling

Russell Goldenberg released Scrollama.js in an effort to make scrollytelling more straightforward to implement. Scrollytelling can be complicated to implement and difficult to make performant. The goal of this library is to provide a simple interface for creating scroll-driven interactives and improve user experience by reducing scroll jank. It offers (optional) methods to implement the common scrollytelling pattern to reduce more involved DOM calculations. For lack of a better term,...

0 0