Re: [R] Hmisc latex cell background color

From: Dieter Menne <>
Date: Sun 18 Dec 2005 - 23:15:18 EST

David Whiting <david.whiting <at>> writes:

> The nearest I got to was to be able to colour row. Take a look at Table
> 10 here:

After some private emailing with David and downloading the latest version of the docs, I found the new command \cellcolor in colortbl, which makes coloring of single cells painless.



x <-,nrow=3)) cellTex <- matrix(rep("", NROW(x) * NCOL(x)), nrow=NROW(x)) cellTex[2,2] <- "\cellcolor{red}"
ct <- latex(x, cellTexCmds = cellTex,numeric.dollar=FALSE) ct$style <- "colortbl" # this forces load of colortbl (not documented?) dvi(ct) mailing list PLEASE do read the posting guide! Received on Sun Dec 18 23:25:06 2005

This archive was generated by hypermail 2.1.8 : Mon 19 Dec 2005 - 02:31:56 EST