Description Usage Arguments Value Author(s) See Also Examples
This queries the SVG document to fetch and parse the viewBox
attribute of the root svg
node.
1 | getViewBox(doc)
|
doc |
the parsed XML/SVG document |
It returns a 2-by-2 matrix giving the x and y coordinates in the first and second columns, with the top being in the first row.
Duncan Temple Lang
enlargeSVGViewBox
dim,SVGDocument-method
1 2 3 4 5 6 7 | doc = svgPlot(plot(1:10))
getViewBox(doc)
dim(doc)
doc = svgPlot(plot(1:10), width = 8, height = 11.5)
getViewBox(doc)
dim(doc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.