GG_BMA | R Documentation |
A ggplot2 function for plotting the output of BMA models, from the BMA, BAS, or BMS packages.
GG_BMA(x, confidence_level = 0.95)
x |
BMA model fit from BMA, BAS (call |
confidence_level |
Confidence level for the error bars. Default is 0.95. |
A ggplot2 object
#fit a model
fit = BAS::bas.lm(Sepal.Length ~ ., data = iris)
#get coefs
fit_coefs = coef(fit)
#plot
GG_BMA(fit_coefs)
GG_BMA(fit_coefs, confidence_level = .99)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.