pstext {gmt} | R Documentation |
Call GMT to add text/symbols to the active map and save in postscript format.
pstext(x, cmd="-JM -R -O -K", file=options("gmt.file"))
x |
data frame, matrix, or filename containing the data to be plotted. |
cmd |
string of arguments passed to pstext . |
file |
filename where the map is saved. |
The data are arranged in seven columns: Lon, Lat, Size, Angle, Font,
Justify, and Text, in that order. See help(r2gmt)
for valid
data file format when argument x
is a filename. See the GMT
documentation for details on pstext
and other GMT commands.
Null, but the map is annotated and saved in postscript format.
As a side product, a temporary file ‘lastTEXT.gmt’ is saved in
the working directory.
Assumes that GMT version 4 is installed, i.e. that pstext
and other commands are in the path, and environment variable
GMTHOME
is defined.
Arni Magnusson arnima@u.washington.edu.
gmt-package
gives an overview of the package.
## Not run: gmt(demo.par) pscoast(demo.coast) psxy(demo.xy) pstext(demo.text) psbar(demo.bar, ref=64) psclose() ## End(Not run)