convAnnData: Converting data frames for display as annotation

Description Usage Arguments Details Value See Also Examples

View source: R/annHeatmap.R

Description

Converts a data frames for display as annotation in a heatmap. This is mostly intended as an internal function, but might be useful for finetuning an annotation data frame manually.

Usage

1
convAnnData(x, nval.fac = 3, inclRef = TRUE, asIs = FALSE)

Arguments

x

the data frame to be converted

nval.fac

lower limit for unique values in numerical variables

inclRef

logical value indicating whether to include the reference level among the dummy variables for factors

asIs

logical value indicating whether to perform a conversion; if TRUE, the input x is simply returned, provided it is a numerical matrix (otherwise, the function stops with an error message)

Details

Logical variables are converted to factors. So are numerical variables with less than nval.fac unique values.

Value

convAnnData returns the converted data frame, which is a numerical matrix

See Also

annHeatmap2

Examples

1
2
3
4
5

Heatplus documentation built on May 2, 2018, 4:03 a.m.