close_fig: function to close current graphic device

Description Usage Arguments Author(s) See Also Examples

Description

function to close current graphic device, complement to figure-function that generates graphic devices in flexible fileformats.

Usage

1
close_fig(do.close=F, do.save=do.close)

Arguments

do.close, do.save

whether file should be saved or not (default is TRUE). if FALSE, new graphic device will be opened inside R.

Author(s)

Robert K. Bauer

See Also

figure

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
do.save <- TRUE
figure("Gulf_of_Lions", do.save=do.save, width=5, height=5, type="pdf")
plotmap("lion")
close_fig(do.save)

plotmap("lion")
close_fig(do.save)

do.save <- FALSE
figure("Gulf_of_Lions", do.save=do.save, width=5, height=5, type="pdf")
plotmap("lion")
close_fig(do.save)


Search within the oceanmap package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.