By Tim Salabim
we are happy to announce that mapview 1.0.0 has been released on CRAN.
Together with Florian Detsch (R, Rcpp), Christoph Reudenbach (js) and
Stefan Woellauer (js) we have put together a powerful tool for
on-the-fly mapping of spatial data during the workflow.
In addition to the existing functionality described in my earlier mail,
we have:
1) made the whole code a lot faster, so rendering should be much quicker
now.
2) added “big data” support for vector data.
It is now possible to view even very large vector objects without any
hassle.
This is possible due to the inclusion of special .js functionality. This
means that when working with large Spatial* objects mapview does not use
leaflet for R, but its own functions. This also means that leaflet
integration is not possible for big data. In a nutshell, big data
support is achieved by separating drawing of the geometries and parsing
of the underlying data. This means that in order to query the attributes
of your objects you will need to zoom in a bit. For polygons and lines
the features will turn magenta once they are queryable, for points the
query-radius around the points is restricted quite a bit.
As an example, on my machine (ubuntu 14.04 64-bit, 7.5 GB RAM, Intel®
Core™ i5-4300U CPU @ 1.90GHz × 4, 500GB SSD) 2.1 Mio. points take about
30 sec. to render and the interactive behavior of zooming and panning
is smooth and feels just like dealing with only a handful of points.
For those who are interested in trying yourself, here’s a bit of code to
create an artificial SpatialPointsDataFrame with a bit more than 2.1
Mio. points (to change the size simply change the number of repeats in
the first line.
BE AWARE THAT FROM ABOUT 5 MIO POINTS THINGS MAY WELL BREAK!!
library(ggplot2)
library(rgdal)
library(mapview)data(diamonds)
### blow diamonds up a bit
big3) added a
spplot()
method to produce a static version of the
interactive map. Note, this feature is in ...read moreSource:: r-bloggers.com