Given the following line of code:
<<myrcodeplot, fig.pos="H", fig.height=4, fig.width=4, fig.cap="Example of a plot">>=
I would like to give the plot that is generated here a label, so that I can simply refer to the plot as such in my LaTeX document:
\ref{plot}