knitr’s,
I would like to have a chunk that echos all R commands, shows the results that would be printed to the console below the R commands, but “saves” the graphs to be used in an \includegraphics call and does not print the graphs immediately after the R command that constructs the graph. I can’t seem to find the right combination of include=, results=, echo=, etc. that will result in what I want. I guess my question is … is it possible to suppress the immediate showing of graphics while still allowing the immediate showing of R console output within the same chunk?
In the attached example, I would like the results from chunk 3 with the exception that the histogram immediately following hist() (the unlabeled histogram) would not appear.
Any thoughts on how to accomplish this task would be greatly appreciated. Thank you in advance.
Dr. Derek H. Ogle
Professor of Mathematical Sciences & Natural Resources
Northland College
1411 Ellis Ave
Ashland, WI 54806
e-mail: do...@northland.edu
Carl,
That does the trick!! Thanks for the very prompt help (I never would have come up with that).