View source: R/plot_gamma_regression.R
plot_gamma | R Documentation |
Generates a scatter plot with the gamma regressions of the mean-variance trends without partitioning
plot_gamma(data)
data |
The data to use for producing the plots. |
a plot with the estimated mean-variance trend
# 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_norm <- psrn(yeast, "identifier")
# Generate the plot
yeast_norm %>%
calculate_mean_sd_trends(design) %>%
plot_gamma()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.