View source: R/base_compareData.R
compareData | R Documentation |
Compare data from the same source but different scale
compareData(
X1,
X2,
names = c("X1", "X2"),
width = 10,
height = 10,
savePath = "."
)
X1 |
Matrix with sample col and gene row |
X2 |
Matrix with sample col and gene row |
names |
Label of X1 and X2 |
width , height |
Plot parameters |
savePath |
Plot saved path |
Weibin Huang<654751191@qq.com>
## PAD genes
PAD <- readRDS(system.file("extdata", 'PAD.rds', package = "GSClassifier"))
tgene <- as.character(unlist(PAD$geneSet))
X1 <- stad_fpkm[tgene,]
X2 <- stad_tpm[tgene,]
## Compare FPKM with TPM matrix
res <- compareData(X1,X2,
names=c('FPKM','TPM'),
width = 10,
height = 10,
savePath = '.')
res2 <- compareData(log2(X1+1),log2(X2+1),
names=c('log2FPKM','log2TPM'),
width = 10,
height = 10,
savePath = '.')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.