Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Ambos lados da revisão anteriorRevisão anteriorPróxima revisão | Revisão anterior | ||
projetos:reproducibleresearch [2014/03/17 17:53] – [Reproducible Research] joel | projetos:reproducibleresearch [2014/03/17 18:04] (atual) – [Reproducible Research] joel | ||
---|---|---|---|
Linha 50: | Linha 50: | ||
\section{A Box Plot} | \section{A Box Plot} | ||
- | <<results=' | + | << |
# building a box plot | # building a box plot | ||
boxplot(iris$Sepal.Length~iris$Species) | boxplot(iris$Sepal.Length~iris$Species) | ||
@ | @ | ||
- | | + | |
\section{A Table} | \section{A Table} | ||
Linha 78: | Linha 79: | ||
\end{document} | \end{document} | ||
+ | </ | ||
+ | Save the commands above into a file called report.rnw and compile it into a LaTeX document according to the commands below. | ||
+ | < | ||
+ | library(knitr) | ||
+ | knit(" | ||
+ | </ | ||
- | </ | + | This will generate a .tex file that can be processed by a LaTex editor! |
+ | |||
+ | For linux and mac users, you can run : | ||
+ | |||
+ | < | ||
+ | > tex2pdf report.tex | ||
+ | </ | ||
+ | |||
+ | to convert the result into a pdf | ||