gmt {gmt}R Documentation

Initialize GMT Session

Description

Initialize a GMT (Generic Mapping Tools) session by setting graphical parameters and current postscript file.

Usage

gmt(par, style="s", file="map.eps", quiet=FALSE)

Arguments

par optional string of the form "PARAMETER1=value1 PARAMETER2=value2 ...", passed to gmtset.
style default units and values: "s" for SI (international) or "u" for United States, passed to gmtdefaults.
file postscript filename used in subsequent calls to GMT plot functions, passed to options()
quiet whether current settings should be displayed.

Details

File type should be ‘.eps’ when PAPER_MEDIA is A4+ or letter+, but ‘.ps’ otherwise.

See the GMT documentation for details on graphical parameters, gmtdefaults, gmtset and other GMT commands.

Value

List containing the current options("gmt.file").
If par is passed by user (even an empty string "" will do), a file named ‘.gmtdefaults4’ is created in the working directory. If quiet=FALSE, the current graphical parameter settings are displayed.

Note

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

Author(s)

Arni Magnusson arnima@u.washington.edu.

See Also

options.

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]