nest-Spatial: Nested Spatial

Description Usage Arguments Details Value Examples

Description

Create nested tables from Spatial classes.

Usage

1
2
3

Arguments

data

sp Spatial object

...

ignored

Details

For nest_ the tables are doubly nested. For nest1_ the tables are singly nested.

Value

nested tibble

Examples

1
2
3
4
5
6
7
8
9
library(tidyr)
data(holy_poly)
library(dplyr)
spdata <- spbabel::sp(holy_poly, attr_tab = data_frame(mydat = c("a", "b")))
##ggplot(holy_poly, aes(x = x_, y = y_)) + geom_holygon(aes(group = branch_, fill = object_))
ggg <- nest(spdata)
plot(ggg, col = rainbow(nrow(ggg), alpha = 0.5))
## plot with ggvis
##holy_poly  %>% group_by(object_)  %>% ggvis(~x_, ~y_, fill = ~object_, stroke = ~branch_)  %>% layer_paths()

r-gris/ggrasp documentation built on May 26, 2019, 1:33 p.m.