graphicUtils {rNMR}R Documentation

rNMR graphics window utilities

Description

Utilities for creating and switching between rNMR graphics devices.

Usage

bringFocus(dev = -1)
cw(dev = NULL)
refresh(main.plot = TRUE, overlay = TRUE, sub.plot = TRUE, multi.plot = TRUE, 
	...)
setWindow(p.window = "main", ...)

Arguments

dev

numeric; device number or -1 for the R console. A 2 corresponds to the main plot window, 3 to the multiple file window, 4 to the subplot window, and 5 to the stats window.

main.plot

logical; if TRUE, refreshes the main plot window.

overlay

logical; if TRUE, replots overlays.

sub.plot

logical; if TRUE, refreshes the sub plot window.

multi.plot

logical; if TRUE, refreshes the multiple file window.

p.window

character string; the window type, can be "main", "sub", "multi", or "stats".

...

Additional arguments can be passed to par (setWindow) or internal plotting functions (see addArg).

Details

bringFocus

Modified version of R's bringToTop function designed to run only on Windows platforms.

cw

Cycles through open graphics windows or activates the designated device (if provided).

refresh

Refreshes plot devices.

setWindow

Makes a new plotting window with the correct title, width, and height or activates the designated device (if provided).

Author(s)

Ian A. Lewis ialewis@nmrfam.wisc.edu, Seth C. Schommer schommer@nmrfam.wisc.edu

See Also

toolkit for other rNMR utility functions.


[Package rNMR version 1.1.9 Index]