posteriors_plot: return a 'ggplot2' plot object of the posterior esimates for...

Description Usage Arguments Value Examples

View source: R/posteriors_plot.R

Description

This just returns a ‘ggplot2’ plot object that plots the read depth bins on the x-axis and the posterior mean m estimates (and credible intervals) on the y-axis, and depicts the number of genotypes in each read depth bin using color.

Usage

1

Arguments

P

the tibble that is the m_posteriors component of infer_m

Value

a ‘ggplot2’ plot object.

Examples

1
2
3
4
5
6
7
# get something to plot (short run for example)
im <- infer_m(lobster_buz_2000, minBin = 1000, num_sweeps = 100, burn_in = 20)

# then plot it
g <- posteriors_plot(im$m_posteriors)

# now g is a 'ggplot2' object

whoa documentation built on Aug. 11, 2021, 9:06 a.m.