plotsBiasDrift_Fit: Plot data with biased drift model fit

Description Usage Arguments Value Examples

View source: R/fit_BiasedDrift.R

Description

plotsBiasDrift_Fit will plot data and fit of biased drift model.

Usage

1
plotsBiasDrift_Fit(fit_vals, max_x = 100)

Arguments

fit_vals

list produced by fitBiasedDrift containing amongst other things the MCMC chains.

max_x

Choose maximum value for the x axis (time)

Value

Return ggplot object with posterior plots.

Examples

1
2
3
4
5
6
7
time_points = c(4, 7, 10, 14, 21)
WT_params = list(lambda = 0.1, N  = 5, tau = 1)
x = simulateBiasedDriftData(WT_params$lambda, WT_params$N, WT_params$tau, Pr = 0.7, time_points, 8, 300)

fit_out = fitBiasedDrift(x, WT_params, time_points)
plotsConvergence_Biased(fit_out)
plotsBiasDrift_Fit(fit_out)

MorrisseyLab/CryptDriftR documentation built on Aug. 7, 2021, 8:22 p.m.