-
Notifications
You must be signed in to change notification settings - Fork 13
/
slides.Rpres
37 lines (23 loc) · 2.26 KB
/
slides.Rpres
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Interact with spatial data in R using `mapview` and `mapedit`
========================================================
author: Jamie Montgomery
date: February 4 2020
autosize: true
Motivation
========================================================
R has become even better at spatial analysis with development of the `sf`, `raster`, `stars` and other packages.
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Yes, you can do <a href="https://twitter.com/hashtag/geospatial?src=hash&ref_src=twsrc%5Etfw">#geospatial</a> in R! Some popular <a href="https://twitter.com/hashtag/rspatial?src=hash&ref_src=twsrc%5Etfw">#rspatial</a> packages: sf, raster, ggplot2. (And there's Python and QGIS too, of course.) <a href="https://twitter.com/hashtag/rstudioconf?src=hash&ref_src=twsrc%5Etfw">#rstudioconf</a> <a href="https://twitter.com/TinaACormier?ref_src=twsrc%5Etfw">@TinaACormier</a>. <a href="https://t.co/KFKzcHhu8H">pic.twitter.com/KFKzcHhu8H</a></p>— Pamela Reynolds (@PLNReynolds) <a href="https://twitter.com/PLNReynolds/status/1222682272450650125?ref_src=twsrc%5Etfw">January 30, 2020</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
But what about interacting with my data??
========================================================
<br>
Basic plotting of spatial data, even with `ggplot`, doesn't let you get a feel for what's going on with your spatial data.
I found myself using ArcGIS/QGIS when wanting to zoom in and explore my data.
With `mapview` this is no longer necessary!
<iframe src="https://giphy.com/embed/12UlfHpF05ielO" width="480" height="273" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><p><a href="https://giphy.com/gifs/excited-seinfeld-12UlfHpF05ielO">via GIPHY</a></p>
...and editing my spatial data??
========================================================
<br>
AKA deleting, adding, editing individual features of a spatial file (usually vectors) is possible with `mapedit`
I have really only found the need to do this once, for a [paper on seaweed aquaculture potential](https://www.sciencedirect.com/science/article/abs/pii/S0960982219308863).
All red lines indicating native ranges for seaweed were hand drawn by yours truly using `mapedit`.
![](seaweed_map.png)