prepcolbar: build colmat/colmap given pheno (colwise of data frame) and...

Description Usage Arguments Value

View source: R/aheatmat.R

Description

building colmap depends on iscat status of each column, catstat. catstat is first searched with attributes; if it is not specified, iscatDF is used to calculate it. therefore, the default assumes the user has prepared pheno in a way that categorical vars are either character or factor and cont vars are numeric.

Usage

1
prepcolbar(pheno, colpal = NULL)

Arguments

pheno

a data frame where columns represent different column bars (in a heatmap)

colpal

color pallete, a named list of color vectors. When not specified, autocolpal4DF will be used to generate the default.

Value

a list with elements mapL (a list of map for color legend) and colmat (color matrix for colbar). input pheno and colpal are attached as attributes


nickytong/GenAnalysis documentation built on July 20, 2019, 8:57 a.m.