rdataviewer-package: The rdataviewer package.

Description Author(s) See Also

Description

There are four steps involved in viewing an R object with this package:

  1. Create an object of class ViewerData, which represents the object to be viewed. The viewerData() function can be used for simple atomic vectors. The viewerDataFrame() function is for data frames and the viewerDataText() is for external text files.

  2. Create an object of class ViewerDevice, which represents the graphics device that the object is going to be viewed on. The viewerDevice() function creates an onscreen device. The viewerDataVp() function creates an device with room around the edges for row names and column names.

  3. Create an object of class ViewerState, which represents the current view of the data, i.e., parameters that specify how the data are currently being viewed. The viewerState() function generates an initial state.

  4. Create an object of class Viewer, which contains the data to be viewed, the device it is being viewed on, and information about the current view, i.e., instances of the previous three classes. The simpleViewer() function performs this step.

The view of the data can then be rendered by calling the draw() function on the Viewer.

The view can be altered by calling one of the functions that manipulate the view, such as lrscroll() or udscroll(). These return the modified view, which can then be rendered by calling draw() again.

An interactive interface, based on tcltk, is also provided to allow rapid modification and automatic redrawing of a view. This is provided by the tcltkViewer() function.

Author(s)

Paul Murrell

See Also

viewerData, viewerDevice, viewerState, simpleViewer, tcltkViewer.


pmur002/rdataviewer documentation built on May 25, 2019, 10:21 a.m.