Description Usage Arguments Value Author(s) See Also Examples
When we decorate an R plot with calls to functions
such as lines
,
abline
,
text
,
symbols
and so on, these appear in the resulting SVG in a separate
group (<g>
) element. This function allows us to
determine if such a group is made up of SVG child elements
that are physically/geographically located within
another region's area, i.e. located within
the bounding box of the parent
node.
If they are, this is likely to be a collection of decorations.
1 | isAnnotationGroup(g, parent, bbox = getBoundingBox(parent), scalar = TRUE)
|
g |
an SVG element whose children are tested to determine which objects |
parent |
the parent SVG element of whom we are querying whether
the elements in |
bbox |
the bounding box object of the parent which can be specified without a parent if it has already been computed |
scalar |
a logical value indicating whether we want a single
predicate value indicating whether all of the elements are inside
the bounding box, or alternatively a vector with a logical value for
each of the child nodes of |
A logical value.
Duncan Temple Lang
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.