[R] Coloring specific cells

Jessica Streicher j.streicher at micromata.de
Wed Aug 8 16:16:04 CEST 2012


If its just a few tables, can't you just copy the text and color it in PowerPoint?

If you'd like Latex output i could help maybe, but i'm not sure what you expect.

On 08.08.2012, at 14:19, namit wrote:

> Hi , 
> 
> 
> I have a data frame XYZ. i want to color the cells where ever we find "G" it
> should be green,"Y" yellow,"R" red....etc
> and i want to send it from R to ppt.can any one help me on this. 
> 
> 
> 
> 
> My data frame looks as below.
> 
> XYZ:
> 
>        G    Y     R    T            G     Y     R    T 
> AA   0    0     0    0     AA   1     1     1    1 
> BB   0    0     0    0     BB   1     1     1    1 
> CC   0    0     0    0     CC   1     1     1    1 
>        G   Y     R    T             G     Y     R   T 
> AA   2   2     2    2     AA    3     3     3   3 
> BB   2   2     2    2     BB    3     3     3   3 
> CC   2   2     2    2     CC    3     3     3   3 
> 
> 
> Thanks, 
> Namit 
> 
> 
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/Coloring-specific-cells-tp4639578.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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