<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/leaflet-1-1-0/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://blog.rstudio.org/2017/02/22/leaflet-1-1-0/"> RStudio Blog</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>Leaflet 1.1.0 is now available on CRAN! The <a target="_blank" rel="nofollow" href="https://rstudio.github.io/leaflet/">Leaflet package</a> is a tidy wrapper for the <a target="_blank" rel="nofollow" href="http://leafletjs.com/">Leaflet.js</a> mapping library, and makes it incredibly easy to generate interactive maps based on spatial data you have in R.</p>
<p><a target="_blank" rel="nofollow" href="http://rstudio.github.io/leaflet/choropleths.html"><img sizes="(max-width: 490px) 100vw, 490px" data-image-description="" data-orig-file="https://rstudioblog.files.wordpress.com/2017/02/leaflet-choro.png" data-orig-size="1304,912" data-image-title="leaflet-choro" class="wp-image-4278" data-comments-opened="1" data-recalc-dims="1" data-attachment-id="4278" data-permalink="https://blog.rstudio.org/2017/02/22/leaflet-1-1-0/leaflet-choro/" alt="leaflet-choro" data-medium-file="https://rstudioblog.files.wordpress.com/2017/02/leaflet-choro.png?w=300" data-large-file="https://rstudioblog.files.wordpress.com/2017/02/leaflet-choro.png?w=490" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i0.wp.com/rstudioblog.files.wordpress.com/2017/02/leaflet-choro.png?fit=456%2C456&ssl=1"></a></p>
<p>This release was nearly a year in the making, and includes many important new features.</p>
<ul>
<li>Easily add textual <a target="_blank" rel="nofollow" href="http://rstudio.github.io/leaflet/popups.html#labels">labels</a> on markers, polygons, etc., either on hover or statically</li>
<li><a target="_blank" rel="nofollow" href="http://rstudio.github.io/leaflet/shapes.html#highlighting-shapes">Highlight</a> polygons, lines, circles, and rectangles on hover</li>
<li>Markers can now be <a target="_blank" rel="nofollow" href="http://rstudio.github.io/leaflet/markers.html#awesome-icons">configured</a> with a variety of colors and icons, via integration with <a target="_blank" rel="nofollow" href="https://github.com/lvoogdt/Leaflet.awesome-markers">Leaflet.awesome-markers</a></li>
<li>Built-in support for many types of objects from <code><a target="_blank" rel="nofollow" href="https://cran.r-project.org/web/packages/sf/index.html">sf</a></code>, a new way of representing spatial data in R (all basic <code>sf</code>/<code>sfc</code>/<code>sfg</code> types except <code>MULTIPOINT</code> and <code>GEOMETRYCOLLECTION</code> are directly supported)</li>
<li>Projections other than Web Mercator are <a target="_blank" rel="nofollow" href="http://rstudio.github.io/leaflet/projections.html">now supported</a> via <a target="_blank" rel="nofollow" href="https://github.com/kartena/Proj4Leaflet">Proj4Leaflet</a></li>
<li>Color palette functions now natively support <a target="_blank" rel="nofollow" href="https://bids.github.io/colormap/">viridis</a> palettes; use <code>&quot;viridis&quot;</code>, <code>&quot;magma&quot;</code>, <code>&quot;inferno&quot;</code>, or <code>&quot;plasma&quot;</code> as the palette argument</li>
<li>Discrete color palette functions (<code>colorBin</code>, <code>colorQuantile</code>, and <code>colorFactor</code>) work much better with <a target="_blank" rel="nofollow" href="http://colorbrewer2.org/">color brewer</a> palettes</li>
<li>Integration with <a target="_blank" rel="nofollow" href="http://rstudio.github.io/leaflet/morefeatures.html">several Leaflet.js utility plugins</a></li>
<li>Data with <code>NA</code> points or zero rows no longer causes errors</li>
<li>Support for linked brushing and filtering, via <a target="_blank" rel="nofollow" href="https://rstudio.github.io/crosstalk/">Crosstalk</a> (more about this to come in another blog post)</li>
</ul>
<p>Many thanks to <a target="_blank" rel="nofollow" href="https://github.com/bhaskarvk">@bhaskarvk</a> who contributed much of the code for this release.</p>
<p>Going forward, our intention is to prevent any more Leaflet.js plugins from accreting in the core leaflet package. Instead, we have made it possible to write 3rd party R packages that extend leaflet (though the process to do this is not documented yet). In the meantime, Bhaskar has started developing his own <a target="_blank" rel="nofollow" href="https://github.com/bhaskarvk/leaflet.extras">leaflet.extras</a> package; it already supports several plugins, for everything from animated markers to heatmaps.</p>
<p> <a target="_blank" rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rstudioblog.wordpress.com/4231/"><img alt="" src="http://feeds.wordpress.com/1.0/comments/rstudioblog.wordpress.com/4231/" border="0"></a> <img alt="" src="https://i1.wp.com/pixel.wp.com/b.gif?resize=1%2C1&ssl=1" border="0" data-recalc-dims="1"></p>
<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://blog.rstudio.org/2017/02/22/leaflet-1-1-0/"> RStudio Blog</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/_M5QgRdiA_4"></a></div>