Articles by max humber

Kindle clippings.txt with Python

December 22, 2017 | max humber

Exactly a year ago I posted Kindle clippings.txt with R. Since then things have changed… I’m a Pythonista now! Consequently, I thought it would be fun to update that post and parse highlights with 3.6+ and pandas. Janky, but it works: import panda... [Read more...]

Animated Spirals

February 19, 2017 | max humber

Ed Hawkins’ Global Temperature Spiral is my new favourite visualization. It’s powerful, compelling, and super tangible. I wanted to apply the spiral to my own data, so I got janky with ggplot2 and figured out how to do it. Here’s my own spiral... [Read more...]

The Tile Grid Map for Canada

February 14, 2017 | max humber

I love the tile grid map: Source I think they’re elegant, easy to read, and great for data that are population agnostic. I live in Canada, though. And it sucks (well, no it doesn’t!) because I’ve only ever seen tile grids for America. I dec... [Read more...]

Starry Night Plots

February 4, 2017 | max humber

I think good data science reads like a good story. In that it flows. Has an arc. And is compelling. But data science has a dirty secret. For every piece that works, there are about nine others that didn’t. Nine other stories that look like they were... [Read more...]

Hypothetical Outcome Plots

February 2, 2017 | max humber

suppressPackageStartupMessages(library(tidyverse)) # devtools::install_github("dgrtwo/gganimate") # install.packages("cowplot") library(gganimate) # install image magick in terminal ____ "brew install image magick" If the Weatherman says that t... [Read more...]

Visualizing "The Best"

January 20, 2017 | max humber

How do you measure “The Best”? It’s not immediately clear. Because, “The Best” is incredibly vague and subjective. My “Best” is not the same as your “Best”. And our “Best”s can converge and diverge depending on what we are measur... [Read more...]

Repurposing the Candlestick Chart

January 14, 2017 | max humber

My cousin Eli is way cooler than me. Well, to be fair, I don’t exactly set a high bar! Eli is a skydiving enthusiast with over 200 jumps to his name. And I read books and write nonsense like this… Eli is meticulous about collecting metadata from e... [Read more...]

Candlesticks repurposed

January 14, 2017 | max humber

My cousin Eli is way cooler than me. Well, to be fair, I don’t exactly set a high bar! Eli is a skydiving enthusiast with over 200 jumps to his name. And I read books and write nonsense like this… Eli is meticulous about collecting metadata from e... [Read more...]

Fantasy Hockey with R

January 7, 2017 | max humber

rvest and purrr are wonderful bedfellows. The packages share the underlying tidyverse API. And it feels simple and almost natural to combine them when scraping the web. Here is a slimmed down and worked recipe of how to leverage rvest and purrr in Fan... [Read more...]

Goodreads API

December 22, 2016 | max humber

It’s December 23rd and I’ve only read 49 books. Whoops. There’s still time, but it’s definitely getting dicey. I’m about halfway through three books right now so I think I’ll be able to pull it off. Fingers crossed. Of course, last year I ... [Read more...]

Kindle Clippings

December 22, 2016 | max humber

I highlight a lot of junk on my Kindle. Well, it’s not all junk! ? There’s usually some good stuff buried deep within my clippings.txt file. But it’s hard to manually parse through the file (and the junk). In the past I’ve relied on online ... [Read more...]

Kindle clippings.txt with R

December 22, 2016 | max humber

I highlight a lot of junk on my Kindle. Well, it’s not all junk! ? There’s usually some good stuff buried deep within my clippings.txt file. But it’s hard to manually parse through the file (and the junk). In the past I’ve relied on online ... [Read more...]

Goodreads API with R

December 22, 2016 | max humber

It’s December 23rd and I’ve only read 49 books. Whoops. There’s still time, but it’s definitely getting dicey. I’m about halfway through three books right now so I think I’ll be able to pull it off. Fingers crossed. Of course, last year I ... [Read more...]

HSX Arbitrage

December 10, 2016 | max humber

TL;DR: I wrote a web scraper to help me make fake money. I’ve been playing around with an online marketplace called the “Hollywood Stock Exchange” for a couple of months now. The website is basically “fantasy” for actors, directors and upcom... [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)