Site icon R-bloggers

XKCD "Curve Fitting", in R

[This article was first published on Revolutions, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

You probably saw this XKCD last week, which brought a grimace of recognition to statisticians everywhere:

It's so realistic, that Barry Rowlingson was able to reproduce all but two of the "charts" above with a simple R function (and a little help from the xkcd ggplot2 theme):

And now for @revodavid et al, with the xkcd package and ! (still two more to do…) pic.twitter.com/3aVHis23Gl

— Barry Rowlingson (@geospacedman) September 21, 2018

You can find the R code behind Barry's reproductions here, and I'm sure he'd welcome contributions for the remaining two charts :). 

 

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.