<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/r-charts-in-a-tweet/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://blog.revolutionanalytics.com/2017/11/charts-in-280-chars.html"> Revolutions</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<div>
<p>Twitter recently doubled the maximum length of a tweet to 280 characters, and while all users now have access to longer tweets, <a rel="nofollow" href="https://rud.is/b/2017/11/13/twitter-outer-limits-seeing-how-far-have-folks-fallen-down-the-slippery-slope-to-280-with-rtweet/" target="_blank">few have taken advantage of the opportunity</a>. Bob Rudis used the <a rel="nofollow" href="https://mran.microsoft.com/package/rtweet" target="_blank">rtweet package</a> to analyze tweets sent with the <a rel="nofollow" href="https://twitter.com/search?q=%23rstats&src=typd" target="_blank">#rstats hashtag</a> since 280-char tweets were introduced, and most still kept below the old 280-character limit. The actual percentage differed by the Twitter client being used; I’ve reproduced the charts for the top 10 clients below. (Click the chart for even more clients, and details of the analysis including the R code that generated it.)</p>
<p><a rel="nofollow" href="https://rud.is/b/2017/11/13/twitter-outer-limits-seeing-how-far-have-folks-fallen-down-the-slippery-slope-to-280-with-rtweet/" target="_blank"><img border="0" alt="Twitter 280" title="Twitter 280" src="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01bb09d8fca0970d-800wi"></a></p>
<p>That being said, some have embraced the new freedom with gusto, not least my Microsoft colleague <a rel="nofollow" href="https://twitter.com/DynamicWebPaige" target="_blank">Paige Bailey</a> who demonstrated you can fit some pretty nice R charts — and even animations! — into just 280 characters:</p>
<blockquote class="twitter-tweet" data-lang="en">
<p dir="ltr" lang="en">df &lt;-expand.grid(x = 1:10, y=1:10)<br>df$angle &lt;-runif(100, 0, 2*pi)<br>df$speed &lt;-runif(100, 0, sqrt(0.1 * df$x))</p>
<p>ggplot(df, aes(x, y)) +<br> geom_point() +<br> geom_spoke(aes(angle = angle, radius = speed))</p>
<p>y’all twitterpeople give me 280 characters?<br>yr just gonna get code samples <a rel="nofollow" href="https://t.co/hyGEE2DxGy" target="_blank">pic.twitter.com/hyGEE2DxGy</a></p>
<p>— @DynamicWebPaige (@DynamicWebPaige) <a rel="nofollow" href="https://twitter.com/DynamicWebPaige/status/928101793971699712?ref_src=twsrc%5Etfw" target="_blank">November 8, 2017</a></p></blockquote>
<p></p>
<blockquote data-lang="en" class="twitter-tweet" data-conversation="none">
<p dir="ltr" lang="en">x &lt;-getURL(“<a rel="nofollow" href="https://t.co/ivZZvodbNK" target="_blank">https://t.co/ivZZvodbNK</a>“)<br>b &lt;-read.csv(text=x)<br>c &lt;-get_map(location=c(-122.080954,36.971709), maptype=”terrain”, source=”google”, zoom=14)<br>ggmap(c) +<br>geom_path(data=b, aes(color=elevation), size=3)+<br>scale_color_gradientn(colours=rainbow(7), breaks=seq(25, 200, 25)) <a rel="nofollow" href="https://t.co/7WdQLR56uZ" target="_blank">pic.twitter.com/7WdQLR56uZ</a></p>
<p>— @DynamicWebPaige (@DynamicWebPaige) <a rel="nofollow" href="https://twitter.com/DynamicWebPaige/status/929145227864084480?ref_src=twsrc%5Etfw" target="_blank">November 11, 2017</a></p></blockquote>
<p></p>
<blockquote data-lang="en" class="twitter-tweet" data-conversation="none">
<p dir="ltr" lang="en">library(dygraphs)<br>lungDeaths &lt;-cbind(mdeaths, fdeaths)<br>dygraph(lungDeaths) %>%<br> dySeries(“mdeaths”, label = “Male”) %>%<br> dySeries(“fdeaths”, label = “Female”) %>%<br> dyOptions(stackedGraph = TRUE) %>%<br> dyRangeSelector(height = 20)</p>
<p>I ❤️ R’s interactive visualizations SO MUCH <a rel="nofollow" href="https://t.co/LevjElly3L" target="_blank">pic.twitter.com/LevjElly3L</a></p>
<p>— @DynamicWebPaige (@DynamicWebPaige) <a rel="nofollow" href="https://twitter.com/DynamicWebPaige/status/931126655917154305?ref_src=twsrc%5Etfw" target="_blank">November 16, 2017</a></p></blockquote>
<p></p>
<blockquote data-lang="en" class="twitter-tweet" data-conversation="none">
<p dir="ltr" lang="en">library(plot3D)</p>
<p>par(mar = c(2, 2, 2, 2))<br>par(mfrow = c(1, 1))<br>x &lt;-seq(0, 2*pi,length.out=50)<br>y &lt;-seq(0, pi,length.out=50)<br>M &lt;-mesh(x, y)</p>
<p>surf3D(x = (3+2*cos(M$x)) * cos(M$y),<br> y = (3+2*cos(M$x)) * sin(M$y),<br> z = 2 * sin(M$x),<br> colkey=FALSE,<br> bty=”b2″) <a rel="nofollow" href="https://t.co/a6GwQTaGYC" target="_blank">pic.twitter.com/a6GwQTaGYC</a></p>
<p>— @DynamicWebPaige (@DynamicWebPaige) <a rel="nofollow" href="https://twitter.com/DynamicWebPaige/status/931463030877155328?ref_src=twsrc%5Etfw" target="_blank">November 17, 2017</a></p></blockquote>
<p></p>
<p>For more 280-character examples in R and other languages follow <a rel="nofollow" href="https://twitter.com/DynamicWebPaige/status/928101793971699712" target="_blank">this Twitter thread</a>, and for more on analyzing tweets with rtweet follow the link below.</p>
<p>rud.is: <a rel="nofollow" href="https://rud.is/b/2017/11/13/twitter-outer-limits-seeing-how-far-have-folks-fallen-down-the-slippery-slope-to-280-with-rtweet/" target="_blank">Twitter Outer Limits : Seeing How Far Have Folks Fallen Down The Slippery Slope to “280” with rtweet</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/11/charts-in-280-chars.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/9j4g8Z3D6pg" height="1"></a></div>