plot_background_model: Quality control plots for background model estimation

Description Usage Arguments Details Value See Also

Description

Creates one plot per sample and replicate in a faceted display.

Usage

1
plot_background_model(data, type = c("density", "ratio"))

Arguments

data

A serp_data object.

type

Type of plot, one of density or ratio.

Details

In density mode, plots a histogram of sample1/(sample1 + sample2) overlaid with the probability density function of a Beta distribution using the parameters estimated by fit_background_model.

In ratio mode, plots a scatterplot of sample1/(sample1 + sample2) over sample2 overlaid with points randomly drawn from a beta-binomial distribution using the parameters estimated by fit_background_model.

Value

A ggplot object.

See Also

fit_background_model


ilia-kats/RiboSeqTools documentation built on Oct. 5, 2020, 7:41 p.m.