pscoast | R Documentation |
Call GMT to draw a map (coastlines, borders, rivers) and save in postscript format.
pscoast(cmd, file=getOption("gmt.file"))
cmd |
string of arguments passed to GMT shell command
|
file |
filename where the map will be saved. |
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.
NULL
, but a map is drawn and saved in postscript format.
Similar to plot
and postscript
in native
R graphics.
gmt
, pscoast
, psxy
,
pstext
, psbar
, and psclose
work together to draw maps.
gmt-package
gives an overview of the package.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.