View source: R/plot_exp_model.R
plot_exp_model | R Documentation |
Bayesian exponential model using stan
plot_exp_model(
X,
Y,
N,
fit_exp,
X_model,
color_list = as.list(rep("red", length(X_model))),
ylim = 2
)
X |
date vector of data you want on the graph |
Y |
Numeric vector of number of positive samples |
N |
Numeric vector of total number of samples |
fit_exp |
either fitted exponential model using reactidd::stan_exp_model() or list of such models |
X_model |
the X data for the fittd model or a list() of the X data for the fitted models (length must match number of models given for 'fit_exp') |
color_list |
list() of color characters defaults to list("red") of same length as number of models. |
ylim |
sets the ylimit of the plot |
A ggplot of the exp model/models, the raw data and binomial CI's and the raw data of the model fits used in plotting (all in list format)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.