map.ces: Map CES Sites

View source: R/map.ces.R

map.cesR Documentation

Map CES Sites

Description

Plot CES sites on a simple outline map

Usage

map.ces(cesobj, type='c', xlim=c(-20,30), ylim=c(35,70), pch=21, col=c('white','red'), file=NULL, width=640, height=480, lwd=1, cex=1, units='px', mar = c(1, 1, 1, 1), ...)

Arguments

cesobj

A CES object with site information, usually generated by extract.sites()

type

How to identify sites: currently 'c' for current/non-current, 'n' for number of years operating, 'h' for habitat, and 's' for site-specific colours

xlim

Minimum and maximum longitude bounds, note R will make this 'pretty'

ylim

Minimum and maximum latitude bounds, note R will make this 'pretty'

pch

A numeric value (21-25) identifying symbol type, see ?pch, but 21=circles, 22=squares

col

A vector of colors to fill points, see type

lwd

if pch=21:25, weight of point borders, useful for highlighting e.g. current sites

cex

size of points

file

A valid filename to plot the map to, identified by extension, current options recognised are .png, .jpg (or .jpeg), .tif (or .tiff) and .ps

width, height

size of map (normally in pixels)

units

Units for the size, use 'mm' if outputting to pdf/postscript file

...

Additional arguments passed to map, such as border and lty that control the color and line type of the polygon borders if fill=TRUE is specified.

Details

The default is to color points by whether they are current (second element of col) or historic - the latest year present is taken to represent the 'current' year. If type='n' then the plot will depend on the number of colors, two will separate sites below/above the median number of years operated; three the bottom quartile, the middle 50 percent and the upper quartile (approximately) and four will split by quartile. Any expansion of 'Current', 'No Years', 'Habitat' should work (only the first letter is significant and case is not important).

Value

None

Author(s)

Rob Robinson

Examples

data(ukdata)
sites<-extract.sites(ukdata)
map.ces(sites)

btorobrob/cesr documentation built on June 9, 2025, 5:39 a.m.