groupView: Visualization of association of multiple loci with phenotype

Description Usage Arguments Value Examples

View source: R/groupView.R

Description

Use lda function to train linear discriminant model from SNP data, then use this model to predicate phenotype, use ggplot visualize how well the predication separate the phenotype to groups

Usage

1
groupView(genesnp)

Arguments

genesnp

The data frame of mutiple loci SNP data. First column is the phenotype, followed by all genotype SNPs.

Value

The generated plot, showing how well the SNPs predicate the phenotype, if there are strongly related loci in the data set then the plot will show well separated grouos, but which locus is most strongly related is not showing

Examples

1
2
require(ggplot2)
data(geneSNP)

Kevinpen/SNPgrou documentation built on Dec. 8, 2019, 8:32 a.m.