Description Author(s) See Also
There are four steps involved in viewing an R object with this package:
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.
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.
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.
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.
Paul Murrell
viewerData
,
viewerDevice
,
viewerState
,
simpleViewer
,
tcltkViewer
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.