R: Add column colors of an object of ztable

addCellColor {ztable} | R Documentation

## Add column colors of an object of ztable

### Description

Add column colors of an object of ztable

### Usage

    addCellColor(z, rows = NULL, cols = NULL, bg = NULL, color = NULL,
      condition = NULL)

### Arguments

`z` | An object of ztable
`rows` | An integer vector indicating specific rows
`cols` | An integer vector indicating specific columns
`bg` | A character vector indicating background color
`color` | A character vector indicating color
`condition` | Logical expression to select rows

### Examples

    z=ztable(head(iris))
    z=addRowColor(z,c(1,3),color="platinum")
    z=addColColor(z,2,color="syan")
    z=addCellColor(z,cols=c(5,4),rows=5,color="red")
    z

[Package ztable version 0.2.0 Index]