pscoast function

Draw GMT Map

Draw GMT Map

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

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

Arguments

  • cmd: string of arguments passed to GMT shell command pscoast .
  • file: filename where the map will be saved.

Details

The file argument can be supplied with (recommended) or without a full directory path. Without a path, the current working directory is used (see getwd and setwd).

See the GMT documentation for details on pscoast and other GMT commands.

Returns

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

See Also

Similar to plot and postscript in native graphics.

gmt, pscoast, psxy, pstext, psbar, and psclose

work together to draw maps.

gmt-package gives an overview of the package.

Examples

## Not run: # Draw map and save as "map.ps" in current working directory gmt(demo.par) pscoast(demo.coast) psxy(demo.xy) pstext(demo.text, "-J -R -F+f+a+j -O -K") psbar(demo.bar, ref=66) psclose() # See directory gmt/example for details # Map in one call pscoast("-JM12c -R7E/38E/29N/48N -G100 -B5", "x.ps") ## End(Not run)