plotly.R
plotly.R copied to clipboard
Feature request: Option for alt text for plotly plot in shiny app
I was recently trying to add alt text for a plotly-based animated plot within a shiny app. I saw that there is a comparatively recent option to add alt text via an alt argument in, e.g., package shiny's renderPlot(). I didn't see anything similar in R plotly. Is it possible something similar could be extended for renderPlotly()?
I was able to get alt text added to my plot via htmltools::tagAppendAttributes() in the UI code, although it took me a bit to get it (apparently) right.
@aosmith16, would you mind sharing your solution with tagAppendAttributes?