<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="http://www.r-bloggers.com/interactive-maps-and-charts-in-r/"></div></div><div><a data-url="http://www.r-bloggers.com/interactive-maps-and-charts-in-r/" data-counturl="http://www.r-bloggers.com/interactive-maps-and-charts-in-r/" data-count="horizontal" data-text="Interactive maps and charts in R" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://blog.revolutionanalytics.com/2016/06/mapping-in-r.html"> Revolutions</a></strong>, and kindly contributed to <a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers)</a> </div>
<div>
<p>Randy George, an expert in web map applications, has been fascinated with computer graphics (especially maps) since the early '80s. For much of that time, <a target="_blank" href="http://www.web-maps.com/gisblog/?p=2365">he says</a>, the technology for mapping has been pretty static:</p>
<blockquote>
<p>The main stay of web mapping applications for the last couple of decades has been three tier: <em>Model</em> – SQL, <em>View</em> – web UI, and <em>Controller</em> – server code. There are many variations on this theme: models residing in image tile pyramids, SQL Server, PostGIS, or Oracle; controller server code as Java, C#, or PHP. The visible action is on the viewer side. Html5 with ever expanding JavaScript libraries like jQuery, bootstrap, and angular.js make life interesting, while node.js is pushing JavaScript upstream to the controller.</p>
</blockquote>
<p>But now, with the advent of the <a target="_blank" href="https://mran.microsoft.com/documents/what-is-r/">R language</a>, things have changed. &quot;R changes things in the geospatial world&quot;, says Randy, and R has &quot;evolved into a useful platform for ad hoc spatial analysis&quot;. In his blog post, &quot;The R Project for Maps&quot;, he gives several examples of using R for creating maps, including this one of using the <a target="_blank" href="https://mran.microsoft.com/package/leaflet/">leaflet package</a> to create an interactive map of census data:</p>
<p><a target="_blank" href="http://www.web-maps.com/gisblog/?p=2365"><img title="Census" alt="Census" src="http://a3.typepad.com/6a0105360ba1c6970c01bb090f3523970d-450wi"></a></p>
<p>Randy also gives several other examples of interactive R graphics behond maps, including this weather chart with an interactive slider based on the <a target="_blank" href="https://mran.microsoft.com/package/dygraphs/">dygraphs package</a>:</p>
<p><a target="_blank" href="http://www.web-maps.com/gisblog/?p=2365"><img title="New haven" alt="New haven" src="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01bb090f3665970d-800wi" border="0"></a></p>
<p>I've only included static screenshots of the various maps and charts above, so be sure to follow the link to Randy's post linked below for the interactive versions with the R code used to create them.</p>
<p>Maps for the Web: <a target="_blank" href="http://www.web-maps.com/gisblog/?p=2365">The R Project for Maps</a></p>
</div>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="http://www.r-bloggers.com/interactive-maps-and-charts-in-r/"></div></div><div><a data-url="http://www.r-bloggers.com/interactive-maps-and-charts-in-r/" data-counturl="http://www.r-bloggers.com/interactive-maps-and-charts-in-r/" data-count="vertical" data-text="Interactive maps and charts in R" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<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/2016/06/mapping-in-r.html"> Revolutions</a></strong>.</div>
<hr>
<a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="http://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="http://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="http://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="http://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="http://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="http://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="http://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="http://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="http://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="http://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="http://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="http://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="http://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="http://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="http://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="http://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/fp698hlC4g0"></a></div>