Using R to create a logo: Simple

December 9, 2011

(This article was first published on Revolutions, and kindly contributed to R-bloggers)

R user Josh Reich, who we've featured here on the blog before, is also the CEO and co-founder of the new user-friendly bank, Simple. (Confidential to Josh — still waiting on my invite…). So it's no suprise that Simple's logo is rendered using the R language:

wave <- function (a, R, p, w) {
    x <- (0.5 + 0.5*R*sin(p+w*a))*cos(a)
    y <- (0.5 + 0.5*R*sin(p+w*a))*sin(a)
    return (cbind(x,y))
blue <- '#3F8492' 
red <- '#E57660'
t <- seq(0, 2*pi, length.out=100)
plot(c(-1, 1)*M, c(-1, 1)*M, pch='', bty='n')
amp <- 0.2
lines(wave(t,amp,0,2), lwd=LWD, col=sprintf('%s%2x', blue, 1.0 * 255))
lines(wave(t,amp,pinc*1,2), lwd=LWD, col=sprintf('%s%2x', red, 1.0 * 255))
lines(wave(t,amp,pinc*2,2), lwd=LWD, col=sprintf('%s%2x', blue, 0.8 * 255))
lines(wave(t,amp,pinc*3,2), lwd=LWD, col=sprintf('%s%2x', red, 0.8 * 255))
lines(wave(t,amp,pinc*4,2), lwd=LWD, col=sprintf('%s%2x', blue, 0.6 * 255))

Josh made the code above available at github. And here's the logo you get (if you add axes=F to the plot command):

Simple logo in R

That's quite a beautiful and elegant outcome for fewer than 20 lines of code!

github: simple.R (via Josh)

To leave a comment for the author, please follow the link and comment on their blog: Revolutions. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags: ,

Comments are closed.


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)