open8graph: opens the graph device

Description Usage Arguments Details Value Examples

View source: R/f0.rbsb1.code.r

Description

According to the global constant rbsb.mfi a graphical device is open or not. Must be called before plotting something that ones want to keep under rbsb.mgr type.

Usage

1
open8graph(prefix=NULL, ...)

Arguments

prefix

When NULL the 1+rbsb.ffg numeric is taken to give the number of the file with three digits. If not, it is a character giving the complete prefix to use before the suffix.

...

argument(s) to be transmitted to the openning device of graphics. Quite useful for specific character and picture sizes, or to get more than one graph into the file.

Details

The file opened for storing the graph is named with three components separated with dots: rbsb.fpx, prefix and rbsb.mgr. rbsb.fpx is a prefix to be modified by the user as convenient. rbsb.ffg is the number of the current figure incremented by this function. rbsb.mgr is the suffix associated to the type of graph (either 'pdf' or 'png').

Value

Nothing but when rbsb.mfi is TRUE and is.null(prefix), the graphical device is open and the global constant rbsb.ffg is increased \_before\_ with one.

Examples

1
2
3
4
5
 rbsb3k("RESET"); # needed only for R checking, to be forgotten
 print(rbsb.ffg);
 open8graph();
 close8graph();
 print(rbsb.ffg);

rbsb documentation built on May 2, 2019, 4:41 p.m.

Related to open8graph in rbsb...