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