[R] colouring a table, data.frame or matrix in an interactive R session

drflxms drflxms at googlemail.com
Mon Jan 9 00:42:38 CET 2012


Am 08.01.12 13:52, schrieb Vincent Zoonekynd:
> On 7 January 2012 19:48, drflxms <drflxms at googlemail.com> wrote:
> 
>> as I am dealing with complex confusion matrices, I wonder whether there
>> might be a way to colour text/tabular data in R. I.e. imagine
>> highlighting the true positive values or certain classes in a table.
> 
> The "colorout" package does part of what you want: colouring the
> output, in a terminal.
> But some more work may be needed if you want to change the colours
> depending on the values of your matrix.
> 
> -- Vincent

Great! That is in fact almost exactly what I was looking for. Thank you
very much for the hint!!!
Working on a MacBook Pro (OS X Lion) and using Aquamacs (GNU EMACS) with
ESS I can confirm that it runs on Mac just as described for Unix in
general. Pretty Cool although - as you already mentioned - colouring
depending on conditions is not implemented yet.

I'll send an e-mail to the author, whether he thinks the library can be
developed in that direction - don't know too much about the technical
details of the shell unfortunately. But that may change ;)

Felix



More information about the R-help mailing list