gmt.demo | R Documentation |
These five objects are provided to demonstrate the functionality of the gmt package.
demo.par
demo.coast
demo.xy
demo.text
demo.bar
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 |
See the GMT documentation for details on psxy
,
pstext
and other GMT commands.
gmt-package
gives an overview of the package.
## Not run:
# Draw map and save as "map.ps" in R 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
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.