Re: [R] print color

From: bogdan romocea <br44114_at_gmail.com>
Date: Tue 11 Jul 2006 - 06:53:26 EST


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@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Robert Mcfadden
> Sent: Monday, July 10, 2006 4:00 PM
> To: R-help@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@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
>



R-help@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 Received on Tue Jul 11 06:58:45 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 11 Jul 2006 - 08:15:43 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.