R

Strange Attractors (12 Months of aRt, February)

Something strange this way comes What is a strange attractor? Wikipedia says an attractor is a set of numbers towards which a system tends to evolve. It then says that an attractor is called strange if its set is fractal. If you’re like me, that definition went in one ear and out the other. Here’s an infinitely better definition: Imagine how a planet orbits a star. The planet is attracted to the center of the star by gravity, but its angular momentum flings it into an ellipse, rather than just letting it fall into the star.

Tessellated Menagerie (12 months of aRt, January)

Motivation Welcome to the inaugural post of my 12 months of aRt project! In these posts I’ll walk through my motivations, technical aspects, and design choices for various generative/data art projects I make using R. Read more about my reasons and expectations for this project in my intro post. I’ve always loved the aesthetics of low-poly animal sketches, so I set out to see if I could recreate this in R.

12 Months of aRt

Announcement! Announcing a new project: 12 Months of aRt! In this post I’ll explain what this project is, why I am doing it, and what I hope to accomplish. I’m currently rewatching 30 Rock, so enjoy this story as told by 30 Rock gifs. What is aRt? The goal of this project is to use R to make generative or data-driven art. Each month I hope to explore a new idea or algorithm–my only requirement is that the primary purpose of the work is creative, not functional 😉.

The Most Dangerous Place to be Transgender

Trigger warning Introduction Getting and cleaning data Trends in violence by region Is South America more dangerous for transgender people, or just for all people? Country level analysis Proportion of murder victims that are transgender Number of transgender victims by age Conclusions Trigger warning This is an exploratory data analysis of murders of transgender people. The data contains graphic descriptions of violence against transgender people.

Animated Species Invasions with rgbif and gganimate

Introduction Getting data with rgbif Data cleaning Data wrangling Make the animation Another example with Kudzu Introduction Since I discovered GBIF, I’ve been hooked. What is GBIF? From their website: “GBIF—the Global Biodiversity Information Facility—is an international network and research infrastructure funded by the world’s governments and aimed at providing anyone, anywhere, open access to data about all types of life on Earth.” In 2018, GBIF passed the mark of one billion occurence records, which is just incredible.

Finding Combinations in the Tidyverse

Introduction Trials and tribulations The solution Introduction Drama, intrigue, arrogance, dashed hopes, rock-bottom, perseverance, and eventual triumph, this post has it all! It starts with me watching Rachael Tatman’s recent live-coding video, and ends with a thrilling race-to-the-bottom between two pathetically slow functions. What lies ahead: many a WTF moment, lots of trial and error, and some useful tidyverse data wrangling tips. Rachael Tatman is a data scientist at Kaggle, and does these awesome live coding sessions every Friday.

Is Hadley Wickham a Cat or Dog Person: A Twitter/Tidytext analysis

The more I use the tidyverse in my R coding, the more I ask myself: does Hadley Wickham hate dogs, or does he just need help with dog-related package names? See, of the packages Hadley has developed for the tidyverse, there are two that have cat-inspired names (forcats and purrr) but zero that pay homage to man’s best friend. It’s not like doggo names are hard to think of for R packages it took me 30 seconds to come up with baRk and woofR**.