Displaying 3 results from an estimated 3 matches for "celltex".
Did you mean:
celle
2005 Dec 15
2
Hmisc latex cell background color
...-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)
Dieter
2009 Jan 22
2
"latex" in Hmisc: cell formating
...> latex(table1, where='htbp', long=TRUE, lines.page=1000, size="scriptsize",
+ cgroup=c("group1","group2"), n.cgroup=c(6,1),
+ rgroup=c("n=1","n=5","n=10","n=20","n=50"), n.rgroup=rep(36,5),
+ cellTexCmds=cell.format, numeric.dollar = FALSE)
Error in cat(rcellTexCmds[i, colNum], " ", cx[i, colNum], file = file, :
subscript out of bounds
>
>
## if I remove the column name grouping, it works fine!
##
> latex(table1, where='htbp', long=TRUE, lines.page=1000, size=...
2012 Dec 02
0
Hmisc latex cell background color
...rs,
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:...