Description Usage Arguments Value Author(s) See Also Examples
This function and its methods attempt to determine the shape corresponding to an SVG element.
1 | guessSVGShape(doc, addShapes = TRUE, recursive = FALSE, ...)
|
doc |
the SVG element or the document or list of nodes |
addShapes |
a logical value that determines whether we add a
|
recursive |
a logical value. Currently ignored. In the future it will control whether child nodes are also processed. |
... |
additional parameters for the methods |
A character vector giving the names of the determined shapes.
If addShapes
is TRUE
, the XML node(s) is modified too
as a side effect.
Duncan Temple Lang
getPlotRegionNodes
getPlotPoints
getAxesLabelNodes
1 2 3 4 5 6 7 8 9 10 11 12 13 | dd = svgPlot(plot(1:10, type = "l"))
rr = getPlotRegionNodes(dd)
xmlSApply(rr[[1]], guessSVGShape)
dd = svgPlot(plot(1:10, type = "b"))
rr = getPlotRegionNodes(dd)
xmlSize(rr[[1]])
xmlSApply(rr[[1]], guessSVGShape)
dd = svgPlot(plot(0:25, pch = 0:25))
rr = getPlotRegionNodes(dd)
xmlSApply(rr[[1]], guessSVGShape)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.