Description Usage Arguments Value Author(s) See Also Examples
This function uses heuristics to find the SVG nodes corresponding
to the legend generated via the auto.key
parameter
in a lattice plot. One can then use this to annotate
the SVG, e.g. put links or mouseover handlers on the labels.
1 | getLatticeLegendNodes(doc, plotRegions = getPlotRegionNodes(doc), which = NA)
|
doc |
the parsed SVG document, i.e. an object of class |
plotRegions |
typically not specified, but this allows the caller to identify the plot region nodes. |
which |
if specified, an integer identifying which legend is of
interest. This is for the case where there is more than one
legend/key in the plot, i.e. via the |
A list of XMLInternalNode
objects.
Duncan Temple Lang
svgPlot
xmlParse
the lattice package.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.