ewowin: Polygonal window of England and Wales

Description Usage Format Source Examples

Description

An owin class polygonal window of England and Wales.

Usage

1

Format

An owin class object.

Source

South,A.2011.rworldmap: A New R package for Mapping Global Data. The R Journal Vol. 3/1 : 35-43.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## 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)

rcarbon documentation built on Jan. 13, 2021, 7:09 p.m.