[R] R2HTML, HTMLStart(): are plots send to HTML?
Greg.Snow at imail.org
Thu Sep 18 18:25:04 CEST 2008
You need to tell R when to include the plots (there is the possibility that you will add to the current plot, or redo it, etc., so R cannot tell when to include plots automatically). Look at the HTMLplot function, you will issue that when you have made a plot (see it on the screen) that you want included in the html (I would use a different folder than c:\ since every plot will be saved separately to its own file, then linked to in the html, therefore when I use this, I create a dedicated folder for a given transcript).
Hope this helps,
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Werner Wernersen
> Sent: Thursday, September 18, 2008 4:00 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] R2HTML, HTMLStart(): are plots send to HTML?
> I just want to make sure that I really misunderstood the documentation:
> Is HTMLStart redirecting plots as well so that they are included in the
> HTML report? I tried the below and the plot is not included in the HTML
> Or did I miss some switch or so?
> Many thanks,
> > HTMLStart(outdir = "c:/", filename = "report")
> *** Output redirected to directory: c:/
> *** Use HTMLStop() to end redirection. TRUE
> HTML> plot(1:10, 1:10)
> HTML> HTMLStop()
>  "c://report_main.html"
> Do You Yaho
> Schutz gegen Massenmails.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help