Description Usage Arguments Details Author(s) See Also Examples
Plotting object of class "biomarker"
, which is result of function biomarker
1 | plot.biomarker(x, type="Vstar",...)
|
x |
object of the type |
type |
possible type of the plot: |
... |
another arguments, curently not being used. |
If type="Vstar"
, all the values above the treashold (dotted line) were identified as biomarkers.
If type="diag"
, a graphical representation of outlyingness of each cell is plotted. Continuous gray scale is used, where black represents "biggest" outliers. Stars on the top of plot indicates the positions of the biomarkers.
Jan Walach
biomarker,
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Data simulation
set.seed(4523)
n <- 40; p <- 50
r <- runif(p, min = 1, max = 10)
conc <- runif(p, min = 0, max = 1)*5+matrix(1,p,1)*5
a <- conc*r
S <- rnorm(n,0,0.3)%*%t(rep(1,p))
B <- matrix(rnorm(n*p,0,0.8),n,p)
R <- rep(1,n)%*%t(r)
M <- matrix(rnorm(n*p,0,0.021),n,p)
# Fifth observation is outlier
M[5,] <- M[5,]*3 + sample(c(0.5,-0.5),replace=TRUE,p)
C <- rep(1,n)%*%t(conc)
C[1:20,c(2,15,28,40)] <- C[1:20,c(2,15,28,40)]+matrix(1,20,4)*1.8
X <- (1-S)*(C*R+B)*exp(M)
# Biomarker identification
b <- biomarker(X,g1=1:20,g2=21:40,type ="tau")
plot(b,type="diag")
plot(b,type="Vstar")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.