I'm working with an .Rnw file, trying to generate a plot. However, when I click Compile PDF, I get a blank pdf with just the figure caption and no plot. It looks like this: 
Here is the code:
\documentclass{article}
\begin{document}
<<fasfd, fig.height=10, fig.cap="first", fig.pos="t", echo=FALSE, fig.width=10>>=
barplot(table(mtcars$gear))
@
\end{document}
What am I doing wrong?
knitrandsweave. Which one are you using? - Gregor Thomas"eg.Rnw"and then doingknitr::knit2pdf("eg.Rnw")gets a document that does display the plot. - Josh O'Brienknitr, sorry for the confusion. - ytk