psxy {gmt}R Documentation

Add Lines/Symbols to GMT Map

Description

Call GMT to add lines/symbols to the active map and save in postscript format.

Usage

psxy(x, cmd="-JM -R -Scp -W2p -O -K", file=options("gmt.file"))

Arguments

x data frame, matrix, or filename containing the data to be plotted.
cmd string of arguments passed to psxy.
file filename where the map is saved.

Details

The data are arranged in two (Lon, Lat) or more columns, depending on the -S argument. See help(r2gmt) for valid data file format when argument x is a filename. See the GMT documentation for details on psxy and other GMT commands.

Value

Null, but the map is annotated and saved in postscript format.
As a side product, a temporary file ‘lastXY.gmt’ is saved in the working directory.

Note

Assumes that GMT version 4 is installed, i.e. that psxy and other commands are in the path, and environment variable GMTHOME is defined.

Author(s)

Arni Magnusson arnima@u.washington.edu.

See Also

lines, points, postscript.

gmt-package gives an overview of the package.

Examples

## Not run: 
gmt(demo.par)
pscoast(demo.coast)
psxy(demo.xy)
pstext(demo.text)
psbar(demo.bar, ref=64)
psclose()
## End(Not run)

[Package gmt version 1.0-3 Index]