rstudio / htmltools

Tools for HTML generation and output
https://rstudio.github.io/htmltools/
214 stars 67 forks source link

Support `attribs` param in `capturePlot()` #338

Open jooyoungseo opened 1 year ago

jooyoungseo commented 1 year ago

While plotTag() provides attribs param to pass additional attributes to <img> element, capturePlot() does not have this param. Recently, I have been working on accessible data visualization by using svg xml, and I need to add id attribute to svg plot. Please open this door so that users can add more attributes to their desired plot elements, such as svg.