# NOT RUN {
# create a ggplot2 chart
ggplot(pressure, aes(temperature, pressure)) +
geom_point()
# Use 'access_img()' to render the chart with alt text
access_img(alt = "Vapor Pressure of Mercury as a Function of Temperature")
# Create a png.
file.create(tempfile("some_img", fileext = ".png"))
# Read it from disk and include alt text
access_img("some_img.png", alt = "Some meaningful alt text")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab