Learn R Programming

NanoStringQCPro (version 1.4.0)

colByCovar: colByCovar

Description

Define colors based on a covariate of an RccSet object

Usage

colByCovar(pdata, covar)

Arguments

pdata
pData() of an RccSet object
covar
character, colname in the pdata used to stratify (color) data

Value

A list of length 2, with [["color"]] being a character vector of colors (one color for each level of covar) of length=number of observations and [["legend"]] providing the levels of covar to map colors to covar