# What would impressionnists do with R ?

**Romain Francois, Professional R Enthusiast**, 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.

I’ve been playing with images recently, probably inspired from my trip in San Francisco. There was an exhibit at the De Young museum of fine arts with pieces borrowed from the Musée d’Orsay. I did not go to the exhibit because it is easy enough for me to just go to Paris and the Musée d’Orsay, but I guess this somewhat inspired me, along with the golden gate bridge, to do some R based impressionnism

The starting point is this picture of the golden gate bridge

The png package makes it straightforward to import png pictures into R (There are other ways as well).

Then, I generate randomly spaced circles so that they don’t overlap, and fill each circle with the average color (on the RGB space) of all te pixels that are inside the circle

Then I do this many times, with translucent circles, and after some iterations ,the golden gate bridge starts to reveal itself

The code for this is included below

Here are other examples

**leave a comment**for the author, please follow the link and comment on their blog:

**Romain Francois, Professional R Enthusiast**.

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.