dmurdoch / rgl

rgl is a 3D visualization system based on OpenGL. It provides a medium to high level interface for use in R, currently modelled on classic R graphics, with extensions to allow for interaction.
https://dmurdoch.github.io/rgl/
GNU General Public License v2.0
85 stars 20 forks source link

Add fig-alt support to rgl graphs #341

Open dmurdoch opened 1 year ago

dmurdoch commented 1 year ago

336 correctly noted that the vignette had base graphics without alt text. However, all rgl plots also lack alt text, because the widget doesn't support it. That should be added.

It won't be trivial, because rgl figures are normally canvas elements, not img elements, and canvas doesn't support alt text. But there are workarounds, e.g. https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Basic_usage .

dmurdoch commented 1 year ago

The first attempt wasn't visible, so there's a new attempt in #343 .

dmurdoch commented 1 year ago

I believe this is all done now, subject to knitr accepting my pull request: https://github.com/yihui/knitr/pull/2243 . I'll leave the issue open until that is resolved.