playTools {playwith} | R Documentation |
Built-in tools for playwith
Description
This document describes the built-in tools that can be placed in
a playwith
window. The constructor functions themselves
can be found in the named list toolConstructors
.
Details
Tools in the set playApplicationTools
, by default on the top toolbar:
options
- set interface options, such as toolbar style and annotation mode.
stayontop
- make the window stay above others, so it is always visible.
keep
- keep this plot window, do not replace it with the next
playwith
plot.
save
- save current plot to a file. For Lattice plots, if you intend to print,
you might want to change the theme to one suitable for black and white printing first.
copy
- copy current plot (to the clipboard).
print
- print current plot. For Lattice plots you might want to change
the theme to one suitable for black and white printing first.
data
- opens a browser to show data objects holding the plot data.
Double-click an item to edit it.
settings
- show a dialog box to control the plot type and settings.
(This will only work for basic plot types).
theme
- choose the Lattice theme.
time.mode
- switch to time mode, allowing navigation along the x axis
or through a speciefied time sequence.
Tools in the set playInteractionTools
, by default on the left toolbar:
expand
- choose only one lattice panel to show.
identify
- identify points by adding labels to them.
annotate
- draw text on the plot or page, with various options.
arrow
- draw an arrow on the plot or page.
edit.annotations
- edit the annotation text and arrows in R code.
clear
- remove identifying labels, annotations and/or brushing.
zoom
- select a new plot region by dragging with the mouse.
zoomout
- show 4x the plot area.
zoomfit
- show all data (default scales).
zero
- show the full scale(s) down to zero.
coords
- this widget shows plot coordinates when you click on the plot.
Tools in the set playInteractionTools
that only work with 3D Lattice plots:
zoomin.3d
- zoom in.
zoomout.3d
- zoom out.
fly.left.3d
- fly left.
fly.right.3d
- fly right.
Tools in the set playInteractionTools
that only work with Lattice splom
:
brush
- brush data points, similar to
panel.brush.splom
.
Author(s)
Felix Andrews felix@nfrac.org
See Also
playwith
, playwith.API
Examples
if (interactive()) {
toolSet <- c(list("stayontop", "keep", "save"),
playInteractionTools)
unlist(toolSet)
playwith(plot(1:10), top=toolSet, left=NULL)
}
[Package
playwith version 0.8.51
Index]