plot_gamma: Function for plotting the gamma regression for the...

View source: R/plot_gamma_regression.R

plot_gammaR Documentation

Function for plotting the gamma regression for the mean-variance trend

Description

Generates a scatter plot with the gamma regressions of the mean-variance trends without partitioning

Usage

plot_gamma(data)

Arguments

data

The data to use for producing the plots.

Value

a plot with the estimated mean-variance trend

Examples

# 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()

baldur documentation built on Sept. 18, 2023, 9:07 a.m.