psclose {gmt} | R Documentation |
Call GMT to finalize a map and save in postscript format.
psclose(file=getOption("gmt.file"), trailer=TRUE, cleanup=TRUE)
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. |
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 four tasks: (1) appends a closing trailer to the postscript file [optional], (2) removes GMT files in temporary directory, (3) removes GMT history files in map directory [optional], and (4) moves the bounding box declaration to the postsript file header.
begin{enumerate} aha end{enumerate}
This last enables
Ghostscript to distill a PDF map using the
-dEPSCrop
method.
Arni Magnusson arnima@u.washington.edu.
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.
## 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)