Fifty Shades of R

One of many summaries of the book – Fifty Shades of Grey in R Code.


library(colorspace)
par(bg="thistle")
fiftyShades {
n plot(10, 5, type="n", xlim = c(0, 1), ylim = c(0, 1), axes = FALSE, xlab="Fifty Shades of Grey", ylab = "")
rect(0:(n-1)/n, 0, 1:n/n, 1, col = col, angle=45, border = border)
}
fiftyShades(sequential_hcl(50, c = 1, power = 1))

Result is thrilling 😉

FiftyshadesRplot

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s