[R] boxplot, data frame and html

Gregoire Pau gregoire.pau at embl.de
Wed Oct 28 13:08:02 CET 2009


Hello Silvano,

'hwrite' appends HTML elements in a web page. The web page has to be 
opened before adding elements in it.

The following code should work:

require(hwriter)
p = openPage('T1000.html')
hwrite(t1000[,c(1,5,6)], p, bgcolor='#ffdc98',
        row.bgcolor='#ffdc98', br=TRUE)
hwriteImage('caixa.jpg', p, br=TRUE)
hwrite('', p, br=TRUE)
closePage(p)

Greg
---
Gregoire Pau
EMBL Research Officer
http://www.ebi.ac.uk/~gpau/


Silvano wrote:
> Hi,
> 
> I'm trying put in same page:
> 
> - a data frame with 3 columns and 45 lines;
> - a box plot;
> 
> the code is:
> 
> require(hwriter)
> hwrite(t1000[,c(1,5,6)], 'T1000.html', bgcolor='#ffdc98',
>       row.bgcolor='#ffdc98', br=TRUE)
> 
> p = openPage('T1000.html')
> hwriteImage('caixa.jpg', p, br=TRUE)
> hwrite('',p, br=TRUE)
> closePage(p)
> 
> but isn't working. What's wrong?
> 
> Thanks,
> 
> --------------------------------------
> Silvano Cesar da Costa
> Departamento de Estatística
> Universidade Estadual de Londrina
> Fone: 3371-4346
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list