sigLabsPT: sigLabsPT

Description Usage Arguments Details Value Author(s) Examples

View source: R/set.sigLabs.R

Description

sigLabsPT: set significant labels for multiple comparisons with given p-value table

Usage

1
sigLabsPT(sNames, pTable, scol1 = 1, scol2 = 2, pcol = 3)

Arguments

sNames

sample names

pTable

p-value of statistic test for each pair of samples.

scol1

column (name or index) of sample names 1

scol2

column (name or index) of sample names 2

pcol

column (name or index) of of p-value.

Details

Get/set significant labels for multiple comparisons. Samples with any identical letter are not significant different.

Value

string vector of significant letter

Author(s)

ZG Zhao

Examples

1
2
3
4
5
6
library("Xtools")
pt <- read.csv(file.path(path.package("Xtools"), "data", "data.ptable.csv"))
str(pt)
dt <- subset(pt, subset=Gene=="NR"& Plant=="Arabidopsis")
smps <- sort(unique(c(dt$S1, dt$S2)))
cbind(sample=smps, siglabs=sigLabsPT(smps, dt, scol1=3, scol2=4, pcol=5))

zgzhao/Xtools documentation built on May 22, 2021, 3:37 a.m.