Skip to content

Instantly share code, notes, and snippets.

View ryantimpe's full-sized avatar

Ryan Timpe ryantimpe

View GitHub Profile
@ryantimpe
ryantimpe / TurkeyVelociraptorPlot.R
Last active November 25, 2018 15:37
Plot phylopic images to compare raptor size in Jurassic Park to reality
library(tidyverse); library(rvest);
library(png)
#Phylopic images here:
https://github.com/ryantimpe/ChartOfTheDay/tree/master/data
#Text wrapping function ---
wrapper <- function(x, ...) {paste(strwrap(x, ...), collapse = "\n")}
#Scale image into feet