View source: R/plot_exp_model_phe.r
plot_exp_model_phe | R Documentation |
Bayesian exponential model using stan
plot_exp_model_phe(
X,
Y,
fit_exp,
X_model,
color_list = as.list(rep("red", length(X_model))),
ylim = 5000
)
X |
date vector of data you want on the graph |
Y |
Numeric vector of number of positive samples |
fit_exp |
either fitted exponential model using reactidd::stan_exp_model_phe() 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) |
color_list |
list() of color characters defaults to list("red") of same length as number of models. |
ylim |
sets the y limit 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.