powered by
Add column colors of an object of ztable
addCellColor( z, rows = NULL, cols = NULL, bg = NULL, color = NULL, condition = NULL )
An object of ztable
An integer vector indicating specific rows
An integer vector indicating specific columns
A character vector indicating background color
A character vector indicating color
Logical expression to select rows
# NOT RUN { z=ztable(head(iris)) z=addRowColor(z,c(1,3),color="platinum") z=addColColor(z,2,color="cyan") z=addCellColor(z,cols=c(5,4),rows=5,color="red") z # }
Run the code above in your browser using DataLab