outlier_PCA: Sample filter based on PCA

Description Usage Arguments Value Author(s) Examples

Description

This function remove outliers based on principal component analysis (PCA).

Usage

1
2
outlier_PCA(data, trait = NULL, colour = NULL, label = FALSE,
  pcout = 0.3, plot = TRUE)

Arguments

data

Data matrix

trait

Sample information for PCA plot Defaults to NULL

colour

One of the trait for colour in PCA plot Defaults to NULL

label

Whether use the label in PCA plot or not Defaults to FALSE

pcout

The threshold for outliers Defaults to 0.3

plot

Whether output the plot or not Defaults to TRUE

Value

outliers

Author(s)

WKL

Examples

1
outlier_PCA(data, trait, colour="Gender", pcout=0.3)

wkl1990/MyPackage documentation built on May 26, 2019, 6:36 a.m.