Description Usage Arguments Value See Also Examples
The median of the randomly permuted EMD scores (i.e. the null
distribution) is plotted on the x-axis, vs. the observed EMD scores on the
y-axis. The line y=x
is superimposed.
1 | plot_emdnull(emdobj)
|
emdobj |
An |
A ggplot
object is returned. If the value is
not assigned, a plot will be drawn.
1 2 3 4 5 6 7 8 9 10 11 | # 100 genes, 100 samples
dat <- matrix(rnorm(10000), nrow=100, ncol=100)
rownames(dat) <- paste("gene", 1:100, sep="")
colnames(dat) <- paste("sample", 1:100, sep="")
# "group A" = first 50, "group B" = second 50
groups <- c(rep("A",50),rep("B",50))
names(groups) <- colnames(dat)
results <- calculate_emd(dat, groups, nperm=10, parallel=FALSE)
plot_emdnull(results)
|
sh: 1: wc: Permission denied
Calculating pairwise emd scores...done.
Calculating emd...done.
Calculating permuted emd #1 of 10...done.
Calculating permuted emd #2 of 10...done.
Calculating permuted emd #3 of 10...done.
Calculating permuted emd #4 of 10...done.
Calculating permuted emd #5 of 10...done.
Calculating permuted emd #6 of 10...done.
Calculating permuted emd #7 of 10...done.
Calculating permuted emd #8 of 10...done.
Calculating permuted emd #9 of 10...done.
Calculating permuted emd #10 of 10...done.
Calculating q-values...done.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.