gmt (version 1.2-0)

gmt.demo: GMT Example Data

Description

These five objects are provided to demonstrate the functionality of the gmt package.

Usage

demo.par demo.coast demo.xy demo.text demo.bar

Arguments

Format

demo.par and demo.coast are simple strings. demo.xy is a data frame containing:
Lon
Longitude
Lat
Latitude
Size
Size of plot symbol
demo.text is a data frame containing:
Lon
Longitude
Lat
Latitude
Size
Size of plot symbol
Angle
Angle in degrees counter-clockwise from horizontal
Font
Font number
Justify
Justification code
Text
Text label
demo.bar is a data frame containing:
Lon
Longitude
Lat
Longitude
Width
Bar width in degrees
Height
Bar height in degrees

Details

See the GMT documentation for details on psxy, pstext and other GMT commands.

See Also

gmt-package gives an overview of the package.

Examples

Run this code
## Not run: 
# # Draw map and save as "map.eps" in R working directory
# gmt(demo.par)
# pscoast(demo.coast)
# psxy(demo.xy)
# pstext(demo.text)
# psbar(demo.bar, ref=66)
# psclose()
# # See directory gmt/example for details
# ## End(Not run)

Run the code above in your browser using DataCamp Workspace