Learn R Programming

blighty (version 3.1-4)

blighty: British Isles Coastlines

Description

Function for drawing the coastlines of the British Isles

Usage

blighty(place="set.British.Isles", set=TRUE, grid=FALSE, xlimits, ylimits, xpadding=0, ypadding=0, parcol, parbor, parwdh, sarcol, sarbor, sarwdh, parang, parden, sarang, sarden, tlncol, tlnwdh, grdcol, grdwdh)

Arguments

place
map set - a list of objects to plot - see notes - default - "set.British.Isles"
set
set to FALSE if place is not a standard set of objects - default - TRUE
grid
TRUE or FALSE - places a grid in OS km over the map - default - FALSE
xlimits
vector of limits in OS km in which to draw the map
ylimits
vector of limits in OS km in which to draw the map
xpadding
kms to leave to either side between the edges and map in the x direction - default = 0
ypadding
kms to leave to either side between the edges and map in the y direction - default = 0
parcol
primary area colour - "transparent" for no shading - default - par("bg")
parbor
primary area colour - "transparent" for invisible - default - par("fg")
parwdh
primary area border width - default 1
sarcol
secondary area colour - "transparent" for no shading - default - par("bg")
sarbor
secondary area colour - "transparent" for invisible - default - par("fg")
sarwdh
secondary area border width - default 1
parang
angle of hatching lines for primary areas - default NULL - parden must be set to positive if hatching is to appear - look at polygon for further information
parden
density of hatching lines for primary areas in lines per inch - default - NULL - parden must be set to positive if hatching is to appear - look at polygon for further information
sarang
angle of hatching lines for secondary areas - default NULL - parden must be set to positive if hatching is to appear - look at polygon for further information
sarden
density of hatching lines for secondary areas in lines per inch - default - NULL - parden must be set to positive if hatching is to appear - look at polygon for further information
tlncol
colour of lines for non-area objects - default - par{"fg"}
tlnwdh
width of lines for non-area objects - default = 1
grdcol
colour of grid lines - default - par{"fg"}
grdwdh
width of grid lines - default = 1

Value

blighty.mapinfo in the global environment to give information for north.pointer and map.scale

Acknowledgements

Dr. Breedette Hayes of Dublin, for the Irish coordinates, and Dr. Mandy Jay of the Department of Archaeology, University of Sheffield, for some of the detail work on the Scottish Western Isles.

See Also

map.scale north.pointer oz

Examples

Run this code
blighty()		# British Isles coastline
blighty(grid=TRUE)	# British Isles coastline with grid
points(399,91)		# add in Poole OS coords last digit is 1km
text(400,50,"Poole")

blighty(place="set.Scotland")	# Scotland and the Western Isles
points(327, 672)	# OS coords for Authurs Seat
text(327, 655, "Edinburgh")

blighty(place="set.Wales")	# Wales and Anglesey

blighty(place="set.Ireland")	# Ireland

blighty(place="set.England", xlimits=c(400,600), ylimits=c(50, 200))
box()			# south of England and the Isle of Wight
			# and the Thames Estuary


blighty(place="set.British.Isles")	# do a plot then add the capital cities
x <- c(532, 327, 317, 118, 157)		# make up two vectors of points
y <- c(181, 672, 175, 385, 529)		# for capital cities

names <- c("London", "Edinburgh", "Cardiff", "Dublin", "Belfast") # vector of names
 
points(x,y, col="red")	# add in the points in red
 
text(x + 20, y, labels=names, adj=0)
			# add some labels displaced by 20km to the right

set.mine <- set.British.Isles$Object[c(1,2,3,87,88)]
blighty(place="set.mine", set=FALSE)
			# specify a custom set of objects here it can
			# be all the coastlines for the main British Isles
			# note how you have to specify the new set in quotes
			# and specify set=FALSE - all else should be as normal

blighty(parcol="gray")	# use a basic shading

blighty("set.Scotland", parcol="blue", parbor="red", sarcol="red", tlncol="green", tlnwdh=3)
			# looks hideous but demonstates some of the shading
			# functions

blighty(parang=45, parden=30, parbor="transparent", parcol="black", sarbor="transparent", tlncol="transparent")
			# more of a picture for logos etc

Run the code above in your browser using DataLab