HeatMapFactor: Heatmap function

Description Usage Arguments Value Author(s) References Examples

View source: R/HeatMapFactor.R

Description

This function create a heatmap figure for visualizing how a SNP or a SNP-combination influencing the phenotype.

Usage

1
HeatMapFactor(pts, class, factor, SaveFileName = "", Title = "")

Arguments

pts

matrix. SNP data. Each row represents a sample. Each column represents a SNP. For the element, 1 -> AA, 2 -> Aa, 3 -> aa.

class

matrix. Class labels of samples. It only has one row. Each column represents a class label. For the element, 1 -> case, 2-> control.

factor

numeric. The considered SNP or SNP-combination. For example, factor <- 5, or factor <- c(2,5)

SaveFileName

character. Basic file name for saving figure. By default, SaveFileName <- "".

Title

character. Title of the heatmap figure. By default, Title <- "".

Value

HeatMapFactors: data.frame. The heatmap data for observing how a SNP or a SNP-combination influencing the phenotype.

Author(s)

Junliang Shang shangjunliang110@163.com

References

None

Examples

1
2
3
4
5
data(pts)
data(class)
factor <- c(2,5)
H <- HeatMapFactor(pts, class, factor, SaveFileName = "", Title = "")
HeatMapFactors <- H$HeatMapFactors

CINOEDV documentation built on May 29, 2017, 9:07 p.m.