[R] Hmisc latex cell background color

rahul143 rk204885 at gmail.com
Sun Dec 2 17:47:57 CET 2012


Dear latex/R-Sweavers, 

Using the codel below, I can color text in individual cells for latex 
output. 
Is there a similar way to get a background shading? My attempts failed 
because I did not get the closing brace at the right place with Hmisc/latex. 

library(Hmisc) 

x <- as.data.frame(diag(rnorm(3),nrow=3)) 
cellTex <- matrix(rep("", NROW(x) * NCOL(x)), nrow=NROW(x)) 
cellTex[2,2] <- "\color{red}" 
ct <- latex(x, cellTexCmds = cellTex,numeric.dollar=FALSE) 
ct$style <- "color" 
dvi(ct) 




-----
   TO GET MORE DETAILS CLICK HERE  





--
View this message in context: http://r.789695.n4.nabble.com/Hmisc-latex-cell-background-color-tp4651664.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list