PlotTopEffects: Plot top n effects with their corresponding SNPs or...

Description Usage Arguments Value Author(s) References Examples

View source: R/PlotTopEffects.R

Description

Effects can be respectively considered as independent effects and combination effects. Independent Effect: Effect that only the SNP or SNP-combination has. Combination Effect: Effect is the addition of all effects of SNP-combination and its sub-combinations. This function plots top n effects (including Independent Effect and Combination Effect) with their corresponding SNPs or SNP-combinations.

Usage

1
PlotTopEffects(Vertices, Top = 20, SaveFileName = "")

Arguments

Vertices

matrix. Vertices of constructed graphs, including real vertices and virtual vertices. The first column represents SNP ID or SNP-combination ID. The second column represents effect value. The third column represents the class of vertices, "1" -> real vertice, others -> virtual vertice.

Top

numeric. Top n Effects. By default, Top <- 20.

SaveFileName

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

Value

TopEffect

numeric. Top independent effects of SNPs or SNP-combinations.

CombinationEffect

numeric. Top combination effects of SNPs or SNP-combinations.

Author(s)

Junliang Shang shangjunliang110@163.com

References

None

Examples

1
2
3
4
5
data(Vertices)
data(Edges)
TP <- PlotTopEffects(Vertices, Top = 20, SaveFileName = "")
TopEffect <- TP$TopEffect
CombinationEffect <- TP$CombinationEffect

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