Description Usage Arguments Value Author(s) See Also Examples
This function is a marginally convenient way to fetch the
top-most g
node in the SVG document that contains all
the rendered components. This is the element with an id attribute
whose value is 'surface0'
and whose sub-nodes are typically
of interest. The other part of the document is the defs
which contain definitions that are used by sub-nodes of this g
node.
1 | getTopContainer(doc)
|
doc |
the parsed SVG/XML document |
The XMLInternalNode
.
Duncan Temple Lang
1 2 3 | doc = svgPlot(plot(1:10))
getTopContainer(doc)
getTopG(doc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.