Description Details Author(s) See Also
The playState object is created by playwith to
represent the state of the plot, window and device. It is central to
the playwith.API.
A playState object is an environment
(of class "playState") containing many other objects,
including:
winthe plot window (gtkWindow).
devthe plot device, as returned by dev.cur.
callthe current plot call.
envlocal environment used to store plot data objects.
accepts.argumentswhether the current main plot function accepts arguments.
callNamename of the current main plot function.
is.lattice, is.ggplot, is.vcd, is.basewhether the current plot is a Lattice / ggplot / base graphics
plot. is.base is defined as TRUE if neither of the others is
TRUE and viewport is undefined.
result, trellisresult is the result of evaluating the plot call.
If is.lattice, the trellis object is also stored in
trellis.
viewporta named list of viewport paths (or names).
One of these must be named "plot".
NULL if the plot is a base graphics or Lattice plot.
spacesa character vector listing all spaces defined in the current plot, not
including "page".
labelslabels for data points, either given or guessed.
data.pointsgiven data points or NULL.
idsa named list of currently labelled data points.
Each name corresponds to a "space", which can be "page"
(positioned on page) or "plot" (positioned in plot coordinates).
With Lattice graphics the space can be "packet 1" etc.
Each list element is a data frame of numeric
subscripts and pos (for label placement).
annotationsa named list of calls to be evaluated in a target viewport:
each name corresponds to a "space", as in ids.
linkedan environment, containing a list "ids" and a
list "subscribers". Elements of the former are
subscripts of brushed data points. Elements of
the latter are the playState objects of all
linked plots in this group. This linked
object is shared by all subscribers.
toolshmm...
uiManager, actionGroupsthe GtkUIManager and a named list of its
action groups.
widgetsA list of the GUI widgets. The most useful one
is drawingArea (the plot device widget).
tmpa list of temporary objects, including:
plot.readywhether the plot has been drawn and is ready for interaction.
identify.okwhether data points and labels are defined (or a plausible guess could be made), allowing points to be identified.
There are several other standard objects which can be inspected with
ls.str(playDevCur()).
Other objects can be passed in through the ... argument to
playwith, or defined by tools.
Felix Andrews felix@nfrac.org
playwith, playwith.API
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.