ewowin: Polygonal window of England and Wales

ewowinR Documentation

Polygonal window of England and Wales

Description

An owin class polygonal window of England and Wales.

Usage

ewowin

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

## 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 Aug. 24, 2023, 5:11 p.m.