Learn R Programming

MRIaggr (version 1.1.5)

initWindow: Display initialization

Description

Check and initialize display arguments. For internal use.

Usage

initWindow(window, filename, path, width, height, unit, res, n.plot, mfrow, xlim, ylim, method)

Arguments

window
the type of device on which the plot will be displayed. logical, NULL or character.
filename
the name of the file used to export the plot. character.
path
the directory where the plot file will be created. character.
width
the width of the device used to export the plot. postive numeric.
height
the height of the device used to export the plot. postive numeric.
unit
the units in which height and width are given. character.
res
the nominal resolution in ppi which will be recorded in the bitmap file. positive integer.
n.plot
the number of images to display. integer.
mfrow
the division of the device in plot region. numeric vector of size 2.
xlim
the x limits of the plot. numeric vector of size 2.
ylim
the y limits of the plot. numeric vector of size 2.
method
the name of the function that called the initializer. character.

Details

FUNCTION: The arguments filename, width, height, path, unit and res are only active if window is "eps", "svg" or "png".