Description Usage Arguments Details Value Examples
Create nested tables from Spatial classes.
1 2 3 |
data |
sp Spatial object |
... |
ignored |
For nest_
the tables are doubly nested.
For nest1_
the tables are singly nested.
nested tibble
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.