[R] boxplot, data frame and html

Silvano silvano at uel.br
Thu Oct 29 11:01:33 CET 2009


Gregoire,

it worked very well, thanks

--------------------------------------
Silvano Cesar da Costa
Departamento de Estatística
Universidade Estadual de Londrina
Fone: 3371-4346
--------------------------------------
----- Original Message ----- 
From: "Gregoire Pau" <gregoire.pau at embl.de>
To: <r-help at r-project.org>
Cc: "Silvano" <silvano at uel.br>
Sent: Wednesday, October 28, 2009 10:08 AM
Subject: Re: [R] boxplot, data frame and html


> 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