<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/art-with-code/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://blog.revolutionanalytics.com/2018/07/art-with-code.html"> Revolutions</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<div>
<p>Looking for something original to decorate your wall? <a rel="nofollow" href="http://jef.works/art-with-code/" target="_blank">Art With Code</a>, created by Harvard University bioinformatician <a rel="nofollow" href="https://jef.works/" target="_blank">Jean Fan</a>, provides a collection of R scripts to generate artistic images in the style of famous artworks, for example this randomly-generated piece in the style of <a rel="nofollow" href="http://jef.works/art-with-code/portfolio/20180720_mondrian/" target="_blank">Mondrian</a>:</p>
<p><a rel="nofollow" href="http://jef.works/art-with-code/portfolio/20180720_mondrian/" target="_blank"><img border="0" alt="Mondrian" title="Mondrian" src="http://revolution-computing.typepad.com/.a/6a010534b1db25970b022ad3a42c8e200b-800wi"></a></p>
<p>Other art generators include &quot;<a rel="nofollow" href="http://jef.works/art-with-code/portfolio/20180721_tunnel/" target="_blank">Tunnel</a>&quot; (rotated and scaled designs in the style of <a rel="nofollow" href="https://www.r-graph-gallery.com/206-paivi-julin/" target="_blank">Päivi Julin</a>), Pointillism (sylizes photographs as a dots), and <a rel="nofollow" href="http://jef.works/art-with-code/portfolio/20180722_pixel/" target="_blank">Pixel</a> (an interesting multi-scale filter for photos). The transformations using only the built-in R grid and lattice packages, which made it easy for me to try Pixel on a photo of my own dog, Max:</p>
<p><a rel="nofollow" href="http://revolution-computing.typepad.com/.a/6a010534b1db25970b022ad3a42d51200b-pi" target="_blank"><img border="0" alt="Max-pixel.jpg" title="Max-pixel.jpg" src="http://revolution-computing.typepad.com/.a/6a010534b1db25970b022ad3a42d51200b-800wi"></a></p>
<p>You can find examples of all of these styles and the R scripts used to generate them at the link below.</p>
<p>Jean Fan: <a rel="nofollow" href="http://jef.works/art-with-code/" target="_blank">Art With Code</a>  (<a rel="nofollow" href="http://jef.works/art-with-code/" target="_blank">via</a> the author)</p>
</div>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://blog.revolutionanalytics.com/2018/07/art-with-code.html"> Revolutions</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/UiZWPyrxuvI" height="1"></a></div>