Learn R Programming

gmt (version 1.2-0)

psclose: Finalize GMT Map

Description

Call GMT to finalize a map and save in postscript format.

Usage

psclose(file=getOption("gmt.file"), trailer=TRUE, cleanup=TRUE)

Arguments

file
filename where the map is saved.
trailer
whether a closing trailer should be appended to the postscript file.
cleanup
whether history files ‘.gmtcommands4’ and ‘.gmtdefaults4’ should be removed, leaving no trace except the postscript file.

Value

Details

A closing trailer is required if the last plotting command included -K (default behaviour).

See Also

Similar to dev.off 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.

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 DataLab