University of Wisconsin–Madison

Add alt-text to your ggplot 2 plots

This post is to help researchers adopt accessibility requirements in the easiest way possible.

Include the code chunk option fig-alt in the code chunk that generates a plot to give the plot an alt-text attribute, like so:

fig-alt: the alt-text goes here