ewowin | R Documentation |
An owin
class polygonal window of England and Wales.
ewowin
An owin
class object.
South,A.2011.rworldmap: A New R package for Mapping Global Data. The R Journal Vol. 3/1 : 35-43.
## Not run:
data(ewowin)
# Obtained from rworldmap:
library(maptools)
library(rgeos)
library(rworldmap)
bng <- CRS("+init=epsg:27700")
sbrit <- getMap(resolution="high")
sbrit <- spTransform(sbrit[sbrit$GEOUNIT =="United Kingdom",], bng)
tmp <- SpatialPolygons(list(Polygons(list(Polygon(cbind(c(130000,130000,310000,
425000,700000,700000,130000), c(0,300000,560000,598000,300000,0,0)))),
"1")), 1:1, proj4string=bng)
sbrit <- gIntersection(sbrit,tmp)
ewowin <- as.owin(sbrit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.