wM.barplot: Plot the results in wcomp.MiRKAT

Description Usage Arguments Value Examples

Description

Graphical representation of the slopes presented in the output of wcomp.MiRKAT function.

Graphical representation of the slopes presented in the output of wcomp.MiRKAT function.

Usage

1
2
3
wM.barplot(tab, col = c("red", "blue"))

wM.barplot(tab, col = c("red", "blue"))

Arguments

tab

the output of wcomp.MiRKAT function

col

two colors for the positive and negatives slopes

tab

the output of wcomp.MiRKAT function

col

two colors for the positive and negatives slopes

Value

a barplot representing the slopes for each variable

a barplot representing the slopes for each variable

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# Matrix of samples
 x <- matrix(runif(100), nrow = 10)
# Response vector
 y <- rep(c(0,1),5)

# Run multiwcomp.MiRKAT function
 A <- multiwcomp.MiRKAT(x,y)
# Represent the results
 wM.barplot(A)

# Matrix of samples
 x <- matrix(runif(100), nrow = 10)
# Response vector
 y <- rep(c(0,1),5)

# Run multiwcomp.MiRKAT function
 A <- multiwcomp.MiRKAT(x,y)
# Represent the results
 wM.barplot(A)

UVic-omics/CoDA-wKMR documentation built on Oct. 31, 2019, 12:56 a.m.