**Romain Francois, Professional R Enthusiast**, and kindly contributed to R-bloggers)

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 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...