I have a portion of a latex document that is similar to:
\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}
\includegraphics[width=0.5\linewidth]{figure/plot} \hfill{}
some text...
\end{knitrout}
(it has been generated from R using knitr). It puts the picture I want, and below some text.... I want to put some text... at the right of the picture. How could I do it?
EDIT: adding the R code to generate the latex code for the picture:
<<plot,echo=FALSE,fig.align="left",out.width="0.5\\linewidth">>=
generatePicture()
@