Learn R Programming

gmt (version 1.2-0)

gmt-package: Interface between the GMT Map-Making Software and R

Description

Interface between the GMT map-making software and R, enabling the user to manipulate geographic data within Rand call GMT commands to draw and annotate maps in postscript format.

Arguments

Details

Initialize GMT session: ll{ gmt set graphical parameters and postscript file } Create a map: ll{ pscoast draw psxy annotate pstext annotate psbar annotate psclose finalize } Convert and calculate: ll{ deg2num degrees to numeric geodist distance between coordinates num2deg numeric to degrees } Examples: ll{ demo.par, demo.coast, demo.xy, demo.text, demo.bar strings and data frames to create example map } Internal: ll{ gmt.system, r2gmt helping functions } This package provides functions to draw basic maps with GMT, along with helping functions that can be used to add more advanced features to a map. It supports GMT version 4.0 and higher, and has been tested in Windows and Linux. GMT users typically write shell scripts to draw maps. The gmt package is about interactive data analysis, rapidly visualizing subsets and summaries of geographic data, while performing statistical analysis in the Rconsole.

References

Wessel, P. and W.H.F. Smith. The Generic Mapping Tools: Technical reference and cookbook. Available at http://gmt.soest.hawaii.edu/gmt/doc/gmt/pdf/GMT_Docs.pdf.

See Also

Other packages that can be used to draw maps include: GRASS, maps, PBSmapping, and spgrass6.