yihui/knitr — Issue #81: Caption control in markdown / suppress figure
Author: noamross
Created: 2012-01-12 23:03:27+00:00
State: open

It would be helpful to be able to control the caption that knitr assigns to a plot when using markdown. Right now it simply gives figures captions (or alt-text, depending on the markdown compiler), of `plot of chunk-name`.

I would think a temporary workaround would be to suppress insertion of a figure, and then manually insert the figure after the chunk, as in `[My caption](chunkname.png)`, however I can't find a way to get knitr to generate the figure file but suppress inserting the figure into the compiled markdown file.