close_fig: function to close current graphic device

View source: R/figure.r

close_figR Documentation

function to close current graphic device

Description

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

Usage

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

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

do.save <- TRUE
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)


oceanmap documentation built on Nov. 10, 2023, 5:08 p.m.

Related to close_fig in oceanmap...