<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/the-faces-of-r-analyzed-with-r/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://blog.revolutionanalytics.com/2017/04/the-faces-of-r-analyzed-with-r.html"> Revolutions</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<div>
<p>Maëlle Salmon recently <a target="_blank" rel="nofollow" href="http://www.masalmon.eu/2017/03/19/facesofr/">created a collage of profile pictures</a> of people who use the <a target="_blank" rel="nofollow" href="https://twitter.com/search?q=%23rstats&src=typd">#rstats hashtag</a> in their Twitter bio to indicate their use of R. (I've included a detail below; click to see the complete version at Maëlle's blog.)</p>
<p><a target="_blank" rel="nofollow" href="http://www.masalmon.eu/2017/03/19/facesofr/"><img title="FacesofR-detail" alt="FacesofR-detail" src="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01b8d2753dba970c-800wi" border="0"></a></p>
<p>Naturally, Maëlle created the collage using R itself. Matching Twitter bios were found using the <code><a target="_blank" rel="nofollow" href="https://www.rdocumentation.org/packages/rtweet/versions/0.4.0/topics/search_users">search_users</a></code> function in the <a target="_blank" rel="nofollow" href="https://mran.revolutionanalytics.com/package/rtweet/">rtweet package</a>, which also provides the URL of the profile image to be downloaded using the <a target="_blank" rel="nofollow" href="https://mran.revolutionanalytics.com/package/httr/">httr package</a>. From there, Maëlle used the <a target="_blank" rel="nofollow" href="https://mran.revolutionanalytics.com/package/magick/">magick package</a> to resize the pictures and assemble the collage.</p>
<p>Now, you'll notice that while many people use their face as their Twitter profile picture, others use a logo or some other kind of design. Colin Fay used the Microsoft <a target="_blank" rel="nofollow" href="https://www.microsoft.com/cognitive-services/en-us/computer-vision-api">Computer Vision API</a> to analyze the profile pictures and generate a descriptive caption for each. (Once again, the process was automated using R; you can <a target="_blank" rel="nofollow" href="http://colinfay.me/playing-with-rstats-and-microsoft-computer-vision-api/">find the R code at Colin's blog post</a>.) Some of the generated captions are straightforward: &quot;a woman posing for a picture&quot;. Some of the captions are, well, a bit off the mark: &quot;a person on a surf board in a skate park&quot;. (The API apparently thinks the R logo looks like a surfboard; captions like this at least had a lower confidence score.) Nonetheless, the captions provide a tool for collecting together similar images; here, for example, are those given the caption &quot;a person on a surf board in a skate park:</p>
<p><a target="_blank" rel="nofollow" href="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01bb098e03cc970d-pi"><img title="Surfboards" alt="Surfboards" src="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01bb098e03cc970d-800wi" border="0"></a></p>
<p>If you'd like to play around with the computer vision captions yourself, you'll just need a <a target="_blank" rel="nofollow" href="https://www.microsoft.com/cognitive-services/en-us/computer-vision-api">free API key</a> and the code from Colin's blog post, linked below.</p>
<p>Colin FAY: <a target="_blank" rel="nofollow" href="http://colinfay.me/playing-with-rstats-and-microsoft-computer-vision-api/">Playing with #RStats and Microsoft Computer Vision API</a></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/2017/04/the-faces-of-r-analyzed-with-r.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 title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/search/data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/search/map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/search/animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/search/sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/search/SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/search/git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/search/hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/search/PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/search/time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/search/trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/quPA9bQWy-s"></a></div>