coldatatextGrob: Construct a datatext grob

Description Usage Arguments

View source: R/grob-coloureddatatext.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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.


iNZightVIT/vit documentation built on Aug. 3, 2020, 4:11 a.m.