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
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.
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.
References
Wessel, P. and W.H.F. Smith. 2004. The Generic Mapping Tools:
Technical reference and cookbook. Version 4. Available at
http://gmt.soest.hawaii.edu/gmt/doc/pdf/GMT$\_$Docs.pdf.
See Also
gmt initializes the GMT session, pscoast draws a
map, psxy, pstext, and psbar
annotate the map, and psclose finalizes the postscript
file.
options can be used directly to set
options(gmt.file="mypath").
Other packages that can be used to draw maps include: GRASS,
maps and PBSmapping.