| sp | R Documentation | 
Convert from dplyr tbl form to Spatial*DataFrame.
sp(x, ...) ## S3 method for class 'data.frame' sp(x, attr_tab = NULL, crs, ...)
x | 
 tibble as created by   | 
... | 
 unused  | 
attr_tab | 
 remaining data from the attributes  | 
crs | 
 projection, defaults to   | 
Spatial*
library(dplyr) semap1 <- semap %>% dplyr::filter(y_ > -89.9999) sp_obj <- sp(semap1, attr_tab = seatt, crs = "+proj=longlat +ellps=WGS84") ## look, seamless Antarctica! ## library(rgdal); plot(spTransform(sp_obj, "+proj=laea +lat_0=-70"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.