close_fig | R Documentation |
function to close current graphic device, complement to figure-function that generates graphic devices in flexible fileformats.
close_fig(do.close=F, do.save=do.close)
do.close, do.save |
whether file should be saved or not (default is TRUE). if FALSE, new graphic device will be opened inside R. |
Robert K. Bauer
figure
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.