Learn R Programming

gmt (version 1.0-0)

pscoast: Draw GMT Map

Description

Call GMT to draw a map (coastlines, borders, rivers) and save in postscript format.

Usage

pscoast(cmd, file=options("gmt.file"))

Arguments

cmd
string of arguments passed to pscoast
file
filename where the map will be saved

Value

  • Null, but a map is drawn and saved in postscript format.

Details

File type should be .eps when PAPER_MEDIA is A4+ or letter+, but .ps otherwise. See the GMT documentation for details on pscoast 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.

Examples

Run this code
gmt(demo.par)
pscoast(demo.coast)
psxy(demo.xy)
pstext(demo.text)
psbar(demo.bar, ref=64)
psclose()

Run the code above in your browser using DataLab