Displaying 2 results from an estimated 2 matches for "extcolor".
Did you mean:
textcolor
2011 Jun 01
1
xtable with conditional formatting using \textcolor
...ave <<results=tex>>= and xtable but I can't
get a result I want. My attemps are
#-----------------------------------------------------------------------------
# code R
da <- data.frame(id=letters[1:5], score=1:5*2)
col <- function(x){
ifelse(x>7,
paste("\textcolor{blue}{", formatC(x, dig=2, format="f"), "}"),
paste("\textcolor{red}{", formatC(x, dig=2, format="f"), "}"))
}
da$score.string <- col(da$score)
require(xtable)
xtable(da[,c("id","score.string")])
#------------...
2012 Apr 03
3
Sweave xtable
...darán cuenta de mis dos problemas porque saltan al abrir el pdf que se obtiene como resultado.
#################################3 código R #########################3
library(xtable)
da <- data.frame(id=letters[1:5], score=1:5*2)
col <- function(x){
ifelse(x>7,
paste("\textcolor{blue}{", formatC(x, dig=2, format="f"), "}"),
paste("\textcolor{red}{", formatC(x, dig=2, format="f"), "}"))
}
da$score.string <- col(da$score)
xtable(da[,c("id","score.string")])
##############################...