[R] print color

bogdan romocea br44114 at gmail.com
Mon Jul 10 22:53:26 CEST 2006


One option is
library(R2HTML)
?HTML.cormat
The thing you're after is traffic highlighting (via CSS or HTML tags).
If HTML.cormat() doesn't do exactly what you want, modify the source
code. (By the way, I haven't used R2HTML so far so maybe there's a
more appropriate function.)


> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Robert Mcfadden
> Sent: Monday, July 10, 2006 4:00 PM
> To: R-help at stat.math.ethz.ch
> Subject: [R] print color
>
> Dear R Users,
>
> Is it possible to make R print the largest item in each row
> of a matrix X
> with red font? Example:
>
> 1        2        4        7
>
> 8        4        3        1
>
> ...............
>
> Therefore 7 and 8 should be in red color.
>
> I would appreciate any suggestion
>
> Robert McFadden
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>



More information about the R-help mailing list