Description Usage Arguments Details Value Note Author(s) References Examples
Plot of histogram of pooled gene expression levels, composited with density estimate based on the mixture of marginal distributions. The density estimate is based on the assumption that the marginal correlations between subjects are zero.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | plotHistDensity.v(obj.gsMMD,
plotFlag="case",
plotComponent=FALSE,
myxlab="expression level",
myylab="density",
mytitle="Histogram (case)",
x.legend=NULL,
y.legend=NULL,
numPoints=500,
mycol=1:4,
mylty=1:4,
mylwd=rep(3,4),
cex.main=2,
cex.lab=1.5,
cex.axis=1.5,
cex=2,
bty="n")
|
obj.gsMMD |
an object returned by |
plotFlag |
logical. Indicate the plot will based on which type of subjects. |
plotComponent |
logical. Indicate if components of the mixture of marginal distribution will be plotted. |
myxlab |
label for x-axis |
myylab |
label for y-axis |
mytitle |
title of the plot |
x.legend |
the x-corrdiates of the legend |
y.legend |
the y-corrdiates of the legend |
numPoints |
logical. Indicate how many genes will be plots. |
mycol |
color for the density estimates (overall and components) |
mylty |
line styles for the density estimates (overall and components) |
mylwd |
line width for the density estimates (overall and components) |
cex.main |
font for main title |
cex.lab |
font for x- and y-axis labels |
cex.axis |
font for x- and y-axis |
cex |
font for texts |
bty |
the type of box to be drawn around the legend. The allowed values are '"o"' and '"n"' (the default). |
For a given type of subjects, we pool their expression levels together if the marginal correlations among subjects are zero. We then draw a histogram of the pooled expression levels. Next, we composite density estimates of gene expression levels for the overal distribution and the 3 component distributions.
A list containing coordinates of the density estimates:
x |
sorted pooled gene expression levels for cases or controls. |
x2 |
a subset of |
y |
density estimate corresponding to |
y1 |
weighted density estimate for gene cluster 1 |
y2 |
weighted density estimate for gene cluster 2 |
y3 |
weighted density estimate for gene cluster 3 |
The density estimate is obtained based on the
assumption that the marginal correlation among
subjects is zero. If the estimated marginal correlation obtained by gsMMD.v
is far from zero, then do not use this plot function.
Xuan Li lixuan0759@gmail.com, Yuejiao Fu yuejiao@mathstat.yorku.ca, Xiaogang Wang stevenw@mathstat.yorku.ca, Dawn L. DeMeo redld@channing.harvard.edu, Kelan Tantisira rekgt@channing.harvard.edu, Scott T. Weiss restw@channing.harvard.edu, Weiliang Qiu weiliang.qiu@gmail.com
Li X, Fu Y, Wang X, DeMeo DL, Tantisira K, Weiss ST, Qiu W. Detecting Differentially Variable MicroRNAs via Model-Based Clustering. International Journal of Genomics. Article ID 6591634, Volumne 2018 (2018).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
t1 = proc.time()
library(ALL)
data(ALL)
eSet1 <- ALL[1:50, ALL$BT == "B3" | ALL$BT == "T2"]
mem.str <- as.character(eSet1$BT)
nSubjects <- length(mem.str)
memSubjects <- rep(0,nSubjects)
# B3 coded as 0, T2 coded as 1
memSubjects[mem.str == "T2"] <- 1
obj.gsMMD.v <- gsMMD.v(eSet1, memSubjects, transformFlag = FALSE,
transformMethod = "boxcox", scaleFlag = FALSE,
eps = 1.0e-1, ITMAX = 5, quiet = TRUE)
print(round(obj.gsMMD.v$para, 3))
plotHistDensity.v(obj.gsMMD.v, plotFlag = "case",
mytitle = "Histogram (case)",
plotComponent = TRUE,
x.legend = c(0.8, 3),
y.legend = c(0.3, 0.4),
numPoints = 50)
t2=proc.time()-t1
print(t2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.