Version: | 0.5-1 |
Depends: | R (≥ 3.0) |
Imports: | methods, grid, graph, gridGraphviz, gridSVG (≥ 1.1) |
Suggests: | lattice, ggplot2 |
SystemRequirements: | graphviz |
Title: | Debugging 'grid' Graphics |
Author: | Paul Murrell and Velvet Ly. |
Maintainer: | Paul Murrell <p.murrell@auckland.ac.nz> |
Description: | Functions for drawing scene trees representing scenes that have been drawn using grid graphics. |
License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
NeedsCompilation: | no |
Packaged: | 2020-06-28 23:00:20 UTC; pmur002 |
Repository: | CRAN |
Date/Publication: | 2020-06-30 04:50:02 UTC |
Draw a grid scene graph
Description
This function draws a node-and-edge graph representing the current grid scene.
Usage
gridTree(grobNodeAttrs=list(shape="circle", fillcolor="black",
fontcolor="white"),
vpNodeAttrs=list(shape="box", fillcolor="grey90",
fontcolor="black"),
grob2grobAttrs=list(color="black", lty="solid", lwd=1),
vp2vpAttrs=list(color="black", lty="solid", lwd=1),
grob2vpAttrs=list(color="black", lty="dotted", lwd=1),
vp2grobAttrs=list(color="grey", lty="solid", lwd=2),
split=TRUE, grid=TRUE,
grobs=TRUE, viewports=TRUE, draw=TRUE)
Arguments
grobNodeAttrs |
Named list of attribute settings for nodes representing grobs. |
vpNodeAttrs |
Named list of attribute settings for nodes representing viewports. |
grob2grobAttrs |
Named list of attribute settings for edges between two grobs. |
vp2vpAttrs |
Named list of attribute settings for edges between two viewports. |
grob2vpAttrs |
Named list of attribute settings for edges from a grob to a viewport. |
vp2grobAttrs |
Named list of attribute settings for edges from a viewport to a grob. |
split |
Logical indicating whether to break long node names across multiple lines. |
grid |
Logical indicating whether to draw the graph using traditional graphics or grid. |
grobs |
Logical indicating whether to include nodes in the graph for grobs in the scene. |
viewports |
Logical indicating whether to include nodes in the graph for viewports in the scene. |
draw |
Logical indicating whether to draw the graph. |
Details
The attribute names must be valid graphviz attribute names.
Value
Invisibly returns a graph object.
Author(s)
Paul Murrell
Add tooltips to a grid scene graph.
Description
Produces an SVG version of a scene graph with tooltips that show node labels when the mouse hovers over a graph node.
Usage
gridTreeTips(filename = "Rplots.svg", ..., grid = TRUE)
Arguments
filename |
The name of the SVG file that is produced. |
... |
Arguments that will be passed to |
grid |
Logical indicating whether to draw the scene graph using
grid; setting this to |
Details
This function first produces a grid scene graph from the current page, then produces an SVG version (with tooltips).
Author(s)
Paul Murrell
See Also
Add tooltips to a grid scene.
Description
Produces an SVG version of a grid scene with tooltips that show grob labels when the mouse hovers over a grob.
Usage
grobBrowser(filename = "Rplots.svg")
Arguments
filename |
The name of the SVG file that is produced. |
Author(s)
Paul Murrell