getSVGMappings(name, type, result = "id")type) present as the grid plot
was exported.
vp,
grob or ref. This determines whether we are trying to
get the IDs of a grob or a viewport or a referenced object like a
fill pattern.
id gives us SVG element
IDs. selector gives us CSS selectors. xpath gives us
XPath expressions.
gridSVGMappings. To make using results easier with existing JavaScript libraries and R
packages, CSS selectors and XPath expressions can be returned. This is
the case when result is specified as one of selector or
xpath. These are targeted to match just the SVG element itself,
nothing more.