getMap: Map one observation or prediction

Description Usage Arguments Details Value Examples

View source: R/mappings.R

Description

Find the mapping vectors for one observation or prediction.

Usage

1
2
getMap(ice, regionInfo, plotting = FALSE, main = "", myLand = land,
  nSpace = 7)

Arguments

ice

SpatialPolygon object corresponding to the region of ice

regionInfo

region information list (defaults to regionInfo$regions)

plotting

boolean indicating if map should be plotted

main

string specifying the name for the plot

myLand

SpatialPolygon corresponding to the land

nSpace

Spacing between points and lines that should be plotted. Defaults to every seventh point and arrow

Details

Often reg, lines, and out are taken from a region information list.

A region information list is a list of seven objects: regions, startLines, startCoords, out, lines, dist, loop, and angs. The first of these seven items are lists giving information about each of the regions thatwill be predicted and the seventh is a vector. The package contains a regionInfo object in the regionInfo.rda file, whichis typically what is used for all analyis. However, it would be possible to redefine the regions if desired by making a new regionInfo object.

The variable regions gives SpatialPolygons objects for each region. The values for startLines and startCoords give the starting line from which each region is mapped and built as a SpatialLines object and a matrix of coordinates respectively. For regions with loop = TRUE, the value for startLines is NULL, and the value for startCoords is simply the coordinates for the centroid repeatedly.

The variable out gives a list of SpatialPolygons objects for each region that is outside the corresponding region, but that border the starting lines. These are used when building new polygons to determine if points are being mapped outside the region of interest.

The lines list gives theSpatialLines objects that correspond to the line on which the regions are mapped and built.

The dist list for each region is a vector which gives the distances of the end and breakpoints for each of the corresponding lines

The loop vector gives a Boolean for each region. The value TRUE indicates that the lines are mapped in a circle around a fixed point. The value FALSE indicates that the lines are mapped along a line on land.

The angs variable is a list for each region givng the angles of the corresponding lines

Value

List of the length of the number of regions. Each item in the list is a matrix. Each row of each matrix corresponds to a point in the region's line. The seven columns give the fixed point's x-coordinate, the fixed point's y-coordinate, the mapped point's x-coordinate, the mapped point's y-coordinate, the length of the mapping fvectors in the x-direction, the length of the vectors in the y-direction, and the angles of the mapping vectors.

Examples

1
2
3
4
5
6
7
## Not run: 
obs <- getRegion(dat = obsFeb19811982[1,,], datType = "bootstrap",
                 level = 15)
obsMap <- getMap(ice = obs, plotting = TRUE, regionInfo = regionInfo,
                 main = "Observed Mapping \n February 1985")

## End(Not run)

hdirector/IceCastV2 documentation built on Dec. 9, 2018, 12:27 a.m.