Skip to content

R2HTML, HTMLStart(): are plots send to HTML?

2 messages · Werner Wernersen, Greg Snow

#
Hi,

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 file.
Or did I miss some switch or so?

Many thanks,
  Werner
*** Output redirected to directory:  c:/
 *** Use HTMLStop() to end redirection.[1] TRUE
HTML> plot(1:10, 1:10)
HTML> HTMLStop()
[1] "c://report_main.html"

__________________________________________________
Do You Yaho
 Schutz gegen Massenmails. 
http://mail.yahoo.com
#
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,