Description Usage Arguments Value Examples
This function computes the mode for continuous distributions
1 | distMode(x, adj = 1)
|
x |
Numeric data vector |
adj |
Number indicating the adjustment for the kernel bandwidth |
Number
1 2 3 4 5 6 7 8 | data(bcellViper, package="bcellViper")
d1 <- exprs(dset)
mean(d1[, 1])
median(d1[, 1])
distMode(d1[, 1])
plot(density(d1[, 1]))
abline(v=c(mean(d1[, 1]), median(d1[, 1]), distMode(d1[, 1])), col=c("green", "red", "blue"))
legend("topleft", c("Mean", "Median", "Mode"), col=c("green", "red", "blue"), lwd=4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.