mappoints: mappoints includes a set of points with a set size and symbol

Description Usage Arguments Value Examples

Description

mappoints given a matrix or data.frame, which must contain fields names 'lat' and 'long', these value pairs will be added to the plot generated by maptas

Usage

1
2
3
mappoints(view, indat, inpch = 21, incex = 0.2, incol = 2,
  intitle = "", refill = TRUE, Long = "long", Lat = "lat",
  infill = incol)

Arguments

view

is a vector of four values defining the leftlong, the rightlong, the uplat, and the downlat. These define left, right, top, and bottom of the box plotted; defaults to c(129,155,-25,-44.6). The latitude values need to be negative (southern hemisphere).

indat

a matrix or data.frame containing, at least, columns with names 'long' and 'lat'.

inpch

default = 21, but can be changed to any valid symbol

incex

default 0.2, but can be a constant or variable

incol

default 2 (red) but can be any colour or rgb definition

intitle

main top center title, the same as in plotsessf; this is mostly useful if the refill variable is set to TRUE

refill

default TRUE, refill the land after plotting points.

Long

used to define the longitude field; defaults to 'long'

Lat

used to define the Latitude field; default to 'lat'

infill

the background colour filling open symbols like pch=1; defaults to incol

Value

adds the input points to a map; returns nothing.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
 dev.new(height=6.0,width=6.0,noRStudioGD = TRUE)
 view=c(143.5,149,-39,-44.0)
 maptas(view=view)
 long <- c(147.4,147.8,148,148.2)
 lat <- c(-43.6,-43.6,-43.3,-43.2)
 indata <- cbind(long,lat)
 mappoints(view,indata,incex=1.5)

## End(Not run)

haddonm/abspatial documentation built on June 7, 2019, 9:54 a.m.