psclose | R Documentation |
Call GMT to finalize a map and save in postscript format.
psclose(file=getOption("gmt.file"), trailer=TRUE)
file |
filename where the map is saved. |
trailer |
whether a closing trailer should be appended to the postscript file. |
A closing trailer is required if the last plotting command included
-K
(default behaviour).
NULL
, but the map is finalized and saved in postscript format.
This function performs two tasks:
Appends a closing trailer to the postscript file (optional).
Removes GMT files in temporary directory.
Analogous 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.
## 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.