The graphics format SVG is essentially XML. You can generate SVG plots easily
with the knitr chunk option dev = ‘svg’
(or ‘svglite’
or other SVG
devices). However, they are embedded in the HTML output document with the
<img>
tag, which means you cannot manipulate them even if they are XML. I have
wished to embed the raw XML for years, so that SVG plots can be manipulated. I
didn’t have a strong enough motivation, although I felt this could be
potentially useful.
In July last year, JooYoung Seo filed <a …