Description Usage Arguments Value Author(s) Examples
Display the variability with respect to the level of expression and the associated smoothed estimation of precision weights accounting for heteroscedasticity.
1 | plot_weights(x)
|
x |
a list (such as outputed by the functions
|
a ggplot
object
Boris Hejblum
1 2 3 4 5 6 7 8 9 10 11 12 13 | G <- 10000
n <- 12
p <- 2
y <- sapply(1:n, FUN = function(x){rnbinom(n = G, size = 0.07, mu = 200)})
x <- sapply(1:p, FUN = function(x){rnorm(n = n, mean = n, sd = 1)})
if(interactive()){
w <- sp_weights(y, x, use_phi=FALSE, na.rm = TRUE, gene_based=TRUE)
plot_weights(w)
vw <- voom_weights(y, x)
plot_weights(vw)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.