plot_gamma {baldur}R 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()

[Package baldur version 0.0.3 Index]