Re: [R-sig-Geo] mapview 1.2.0

2016-09-20 Thread Bacou, Melanie

Tim,
Thanks for taking the time to lay out some of the key differences. I 
look forward to trying these out.


I recall a recent thread on using QGIS canvas in R for quick 
visualization as well. Might be worth trying to consolidate some of 
these -- all excellent -- projects (?)


https://stat.ethz.ch/pipermail/r-sig-geo/2016-August/024817.html

--Mel.


On 9/20/2016 5:36 AM, Tim Appelhans wrote:

Mel,
this is I think a matter of the definition of 'quick'. mapview 
provides one line viewing of spatial data.


With mapview(x) you get:

- 5 different background maps
- fully queryable features (i.e. complete attribute table of x in popups)
- info on mouse coordinates and zoom level
- a scale bar (if the installed version of leaflet provides this)
- labels showing feature ID
- zoom-to-layer buttons

Also, mapview lets you add spatial features easily to existing maps 
with the "+" operator:


mapview(x) + viewExtent(y) + z

will add z and the extent/bounding box of y to a map of x (where x, y, 
z are all spatial*/raster* objects). This means that mapview will call 
the appropriate add* function from leaflet depending on the supplied 
object (z) so you won't have to type these.


In general, mapview is intended for quick and convenient viewing of 
spatial data. tmap and leaflet focus more on the creation of 
presentation grade maps and hence require more effort (lines of code) 
to view things. This is great if you want to produce your final map, 
but a bit cumbersome if you just quickly wanna check what your current 
analysis step looks like.


In addition there are convenience functions for larger data sets, 
especially rasters such as plainview() which will render rasters with 
any CRS of up to 10 million pixels quickly, though without background 
maps.
Large vector data can also be viewed quickly and conveniently for data 
up to about 3 million points (or line/polygon vertexes) including 
background map.


Additional functionality includes:

- latticeview and sync to view multiple (potentially synchronised) 
maps next to each other (i.e. small multiples - similar to panels in 
lattice / facets in ggplot2)

- slideview to compare two raster* objects in a before-after like fashion
- viewExtent to view the extent (bounding box) of a spatial*/raster* 
object
- viewRGB to view an rgb image of a raster stack (similar to 
raster::plotRGB)


There are also a few popup-related functions:

- popupTable to create attribute table popups
- popupGraph to include lattice or ggplot2 or htmlwidgets graphs 
(plots) in the popups of features

- popupImage to include images in the popups (jpg, svg, png, gif, ...)

Have a look at the online manual at

http://environmentalinformatics-marburg.github.io/mapview/introduction.html 



which has all the details.



HTH
Tim

On 20.09.2016 11:06, Bacou, Melanie wrote:

Tim,
Both `leaflet` and `tmap` currently offer quick interactive 
visualization of geospatial data in R. Does `mapview` provide 
different functionality at this point?


https://rstudio.github.io/leaflet/
https://cran.r-project.org/web/packages/tmap/vignettes/tmap-nutshell.html 



Thx, --Mel.


On 9/20/2016 4:11 AM, Tim Appelhans wrote:

Dear list members,

2 days ago we have released a new version of the mapview package.

Notable new features are:

1. addHomeButton() to add zoom-to-layer buttons to a leaflet map (by 
default included mapview calls)
2. addLogo() to add an image to the map canvas, e.g. your 
institution's/company's logo (see following tweet for an example 
with a dancing banana :-) )


https://twitter.com/TimSalabim3/status/776712613673730048

In addition several bugfixes and some performance improvements for 
raster image rendering in plainview().


The full list of changes can be found at 
https://github.com/environmentalinformatics-marburg/mapview/blob/master/NEWS

As always, please file bug reports and/or feature requests here:

https://github.com/environmentalinformatics-marburg/mapview/issues

Enjoy!
Tim







___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


Re: [R-sig-Geo] mapview 1.2.0

2016-09-20 Thread Bacou, Melanie

Tim,
Both `leaflet` and `tmap` currently offer quick interactive 
visualization of geospatial data in R. Does `mapview` provide different 
functionality at this point?


https://rstudio.github.io/leaflet/
https://cran.r-project.org/web/packages/tmap/vignettes/tmap-nutshell.html

Thx, --Mel.


On 9/20/2016 4:11 AM, Tim Appelhans wrote:

Dear list members,

2 days ago we have released a new version of the mapview package.

Notable new features are:

1. addHomeButton() to add zoom-to-layer buttons to a leaflet map (by 
default included mapview calls)
2. addLogo() to add an image to the map canvas, e.g. your 
institution's/company's logo (see following tweet for an example with 
a dancing banana :-) )


https://twitter.com/TimSalabim3/status/776712613673730048

In addition several bugfixes and some performance improvements for 
raster image rendering in plainview().


The full list of changes can be found at 
https://github.com/environmentalinformatics-marburg/mapview/blob/master/NEWS

As always, please file bug reports and/or feature requests here:

https://github.com/environmentalinformatics-marburg/mapview/issues

Enjoy!
Tim



___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo