You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plot+ labs(
alt="This is a plot of diamonds data showing the price increases non-linearly with carat"
)
For now, it would just store the label in an attribute, but the goal would be to plumb it up with knitr so that the plot text automatically made it way to the alt attribute of the html image.
The text was updated successfully, but these errors were encountered:
p<- ggplot() + labs(alt='this is a test')
p$labels$alt#> [1] "this is a test"
I think what we should provide is a function that takes a plot object and returns the alt-text. This would make it easy for us to iterate and improve upon it without breaking knitr etc since the interface will be unchanged
e.g.
For now, it would just store the label in an attribute, but the goal would be to plumb it up with knitr so that the plot text automatically made it way to the
alt
attribute of the html image.The text was updated successfully, but these errors were encountered: