coldatatextGrob {vit} | R Documentation

## Construct a datatext grob

### Description

datatextGrob constructs text of a vector of data with colours for different levels of a factor. datatextGrobs inherit the class "coldatatext".

### Usage

    coldatatextGrob(
      data,
      title = NULL,
      cols = NULL,
      xpos = 0.5,
      max = 50,
      name = NULL,
      gp = NULL,
      vp = NULL,
      dp = 2
    )

### Arguments

`data` | a numeric or character vector of data.
`title` | a character string to provide the title, usually the name of the data vector.
`cols` | a vector of character strings specifying the colours for each level of a factor.
`name` | a name for the grob to be constructed.
`gp` | graphical parameters for the text, constructed with gpar().
`vp` | a default viewport to be used when drawing the grob.

[Package vit version 1.2.8 Index]