Displaying 20 results from an estimated 20000 matches similar to: "Using R to generate reports"
2004 Jan 28
9
How to generate a report with graphics and tables?
Hello R-Users,
I have some data sets which change on a daily bases. So far I have
imported these sets into R, done all my evaluations resulting in a
couple of plots, charts and tables of numbers which I copy&pasted via
clipboard into Powerpoint.
The procedure is always the same and I wonder, whether there is no
easier way for doing so. Is there some type of "report generator"
2008 May 29
7
How do you exit a function in R?
For example, based on a certain condition, I may want to exit my code early:
# Are there the same number of assets in "prices" and
"positions"?
if (nAssetPositions != nAssetPrices) {
cat("Different number of assets! \n\n")
<exit function>
}
I have searched, but not
2009 Jan 31
1
Question on Sweave-Latex and examples in the Sweave Manual
Hi List,
I have a problem with using Latex and Sweave for creating a document.
So I downloaded the Sweave manual from
http://www.statistik.lmu.de/~leisch/Sweave/Sweave-manual.pdf
and i have tried to replicate the example on pages 4-5, but i encounter the following problem: IT DOES NOT WORK. I can run Sweave, create the .tex file and then when building the .tex file in TeXnikCenter i get all
2010 Nov 11
4
Troubleshooting sweave
Hi All,
I've reproduced the example from Prof. Friedrich Leisch's webpage. When I
write sweave("Example-1.Snw") OR sweave("Example-1.Rnw"), (yes, I renamed
them). I get the following error:
Writing to file example-1.tex
Processing code chunks ...
1 : echo term verbatim
Error: chunk 1
Error in library(ctest) : there is no package called 'ctest'
Also while
2012 Apr 01
3
How to use Latex code in R loop?
Hi,
I am newbie in Latex and R. I am working on one report in which i need to
read file and display content of file by formatting (adding color boxes and
colorful text for each record). For this i need to use latex code in R loop.
How can i use Latex code in R loop. Any example will help me a lot.
Thanks
--
View this message in context:
2009 Jul 23
1
SweaveOpts(eval=false) not working - CORRECTION
On Thu, Jul 23, 2009 at 3:04 PM, Duncan Murdoch<murdoch at stats.uwo.ca> wrote:
> On 23/07/2009 8:58 AM, Rainer M Krug wrote:
>>
>> Hi
>>
>> I hope this is the right mailing list - if not, could you please refer
>> me to a mora appropriate?
>>
>> My question:
>>
>> I am using sweave (in LyX with beamer) for a lecture and I would like
2006 Oct 14
2
Sweave, R and complex latex projects
Hello all,
I've been able to use R very successfully to run simple statistics and
generate the plots I require.
I've been evaluating Sweave, and have hit upon a small problem that I
don't seem to be able to workaround. Sweave runs very well for single
file latex documents, but I have a complex thesis made up of several
parts and chapters. These are arranged with a master latex file
2009 Aug 07
1
sweave and R. Searching for a document that will get me started
windows XP
R 2.8.1
I would like to learn to use Sweave with R. I have no experience using Latex. I have looked at the sweave manual (http://www.statistik.lmu.de/~leisch/Sweave/Sweave-manual.pdf) and have found it difficult to understand, probably because I don't know Latex. Can someone recommend a document that will get me started with Sweave?
Thanks
John
Confidentiality Statement:
This
2010 Nov 13
1
Sweave question
It seems that Sweave is supposed to be used from Latex and R is called
during the LaTeX compilation process whenever R chunks appear. What
about the other way round? I would like to run it triggered by R. Is
this possible? I understand that this does not correspond to the idea
of literate programming since it means that there is R code running
outside the document, but for my practical approach, I
2012 Oct 05
1
LaTeX consistent publication graphics from R and Comparison of GLE and R
Hi Everyone
I am at the moment preparing my thesis and am looking at producing a few
Organigrams / Flow charts (unrelated to the calculations in R) as well as a
range of charts (barcharts, histograms, ...) based on calculations in R.
For the Organigrams I am looking at an Opensource package called GLE at
sourceforge, which produces the text part in Latex figures which is very
neat and also in
2009 Feb 04
2
Sweave and \Sexpr{}
Hi:
I am trying to create a dynamic latex table using \Sexpr{} but it's not evaluating it. I also tried the example below without Sweave and also fails. I have also copied the Sweave.sty to my working directory but nothing seems to work. Do I need to have certain package in order to run \Sexpr{}?
\documentclass[a4paper]{article}
\usepackage{C:/R/R-2.8.1/share/texmf/Sweave}
\begin{document}
2008 May 17
2
How to paste graph from R in Latex?
Dear R-expert,
Is it possible to save graph from R into Latex document? I?can?see save as metafile , PNG, pdf etc, but I'm not sure which one to use.
Thank ?you so much for your help.
2010 Jun 10
1
Creating reports using R
is there a good way to generate reports in R? I found the following code using split.screen but this only works with plots and i would like to generate reports with tables and charts. thx
if (interactive()) {
par(bg = "white") # default is likely to be transparent
split.screen(c(2,1)) # split display into two screens
split.screen(c(1,3), screen = 2) # now split the
2016 Apr 07
1
dynamic reports with sweave: error when compiling the tex-file
Hello,
I took my first steps in dynamic reports with Gnu R and used sweave().
I therefore run Sweave() with an example of Friedrich Leisch, starting
like this:
\ documentclass [ a4paper ]{ article }
\ title { Sweave Example 1}
\ author { Friedrich Leisch }
\ begin { document }
\ maketitle
and so on.
It worked very well but when I tried to compile the latex file I get
this error message: !
2009 Jun 25
1
Setting default plot size in Sweave
Dear Colleagues:
I have used
\SweaveOpts{prefix.string=plot, eps = FALSE, pdf = TRUE}
\SweaveOpts{width=5, height=4}
<<fig=T>>=
plot(...)
@
But the figure still has a width of 80% of the text width, the default
set up by Sweave, which issues a LateX command in Sweave.sty of
\setkeys{Gin}{.8\textwidth}. Sweave.sty has a command
\ifthenelse{\boolean{Sweave at
2012 Aug 21
2
Sweave: R chunk inside caption?
Hi Folks,
I'm surprised, but I didn't find this question addressed anywhere. I'd
like to generate a LaTeX caption with R code. I've tried the code
below, but I get the following TeX error:
! Argument of \@caption has an extra }.
<inserted text>
\par
l.21 }
Any thoughts? Perhaps I'll have to write the "\caption{}" text with R?
thanks!
2008 Jul 21
1
y-axis number format on plot, barplot etc.
I am trying to change the number format shown on the y-axis from scientific
5e05, to 500,000 etc. Does anyone know how to do this?
Is there something I can add as an argument to barplot, or would it be
through par?
barplot(data$Value, names.arg = as.vector(data$Field), main=strTitle)
[[alternative HTML version deleted]]
2010 Sep 26
4
Good documentation about Sweave
Hello,
I am looking for a good and detailed documentation about Sweave... but can't
find anything more that 15 pages asking Google...
Any hint on that point ?
Cheers
Colin
--
View this message in context: http://r.789695.n4.nabble.com/Good-documentation-about-Sweave-tp2714326p2714326.html
Sent from the R help mailing list archive at Nabble.com.
2011 Oct 06
1
Sweave and bibliographies
I added a bibliographic reference to one of my .Rnw documents, to wit:
\begin{thebibliography}{9}
\bibitem{Jose} Jos{\'{e}} C. Pinheiro and Douglas M. Bates,
\emph{Mixed-Effects Models in S and S-PLUS},
Springer, 2000.
\end{thebibliography}
just before the \end{document}.
When I run Sweave on the result these lines disappear without a trace.
Is this intentional?
Subquestion: is
2013 Jan 08
2
how to label two figures in the same chunk independently with knitr
Dear R helpers,
I am using knitr to run analysis with R and edit my document with Latex. I
am wondering whether there is a way to include 2 or more pictures per chunk
and being able to refer them in the text independently and eventually
whether it is possible to give them different captions. Let me give you an
example.Rnw:
\documentclass{article}
\title{Example}
\author{FS}
\begin{document}