[R] Presenting R Results in Webpages

Jim Lemon jim at bitwrit.com.au
Fri Apr 17 13:51:53 CEST 2009


Jason Rupert wrote:
> I apologize in advance that this question is not specific to R, but I thought some R users may be using this in their work process flow. 
>
> I would like to be able to have a tool (prefer "scriptable") that will take two images and some pre-written text and put it on an simple webpage.  
>
> That is, it would look something like the following:
>
> |---------------------------------------------|
> |                    Title                    |
> |                                             |
> |  |--------|  |--------|     Some basic txt  |
> |  | Image1 |  | Image2 |     ...             |
> |  |________|  |________|     ...             |
> |_____________________________________________|
>
> R comes in because I have R scripts creating the images I would like to import.  There will be 14-18 pages of these type of slides, but the key is we will be producing these over and over.  I tried doing something like this in PowerPoint, but not impressed with the linking capability or Macros.  
>
> Thanks for any feedback and again appologize that this is not exactly a specific R question.
>
>   
Hi Jason,
You could do something similar with htmlize in the prettyR package, and 
get exactly what you want with a bit of HTML editing. Get an R script 
that will generate the two images, then the text. Then insert a few tags 
like this:

(All of the HTML before the first image)
<table>
<tr>
<td>
<img src="Image1.png">
<td>
<img src="Image2.png">
<td>
Text that you want in the right hand cell
</table>
(the rest of the HTML)


Jim




More information about the R-help mailing list