View source: R/grob-coloureddatatext.R
datatextGrob constructs text of a vector of data with colours for different levels of a factor. datatextGrobs inherit the class "coldatatext".
1 2 3 4 5 6 7 8 9 10 11 |
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.