View source: R/plot_gamma_regression.R
plot_gamma_regression | R Documentation |
Generates a scatter plot with the gamma regressions of the mean-variance trends for the precision weights and imputation.
plot_gamma_regression(data, design, id_col = "id")
data |
The data to use for producing the plots. |
design |
A design matrix as produced by |
id_col |
A character for the name of the column containing the name of the features in data (e.g., peptides, proteins, etc.). |
a plot with the mean-variance trend used for the precision weights on the left side, and the trend lines used for the imputation on the right side.
# Produce a design matrix design <- model.matrix(~ 0 + factor(rep(1:2, each = 3))) colnames(design) <- paste0("ng", c(50, 100)) # Normalize and log transform the data yeast <- psrn(yeast, "identifier") # Generate the plots plot_gamma_regression(yeast, design, "identifier")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.