bri.band.ggplot | R Documentation |
Plot credible band for a nonlinear function using ggplot()
bri.band.ggplot(result, name = NULL, x = NULL, alpha = 0.05,
ind = NULL, type = c("random", "fitted", "linear", "lincomb"),
xlab = NULL, ylab = NULL, main = NULL, hpd = FALSE)
result |
the result object from INLA call |
name |
the name of the component for which to do the plot |
alpha |
specifies the credibility level as 100(1-alpha)% |
ind |
the indices for the part of a component that should be plotted |
type |
the type of nonlinear function to be plotted: 'random' random effects; 'fitted' fitted values; 'linear' linear predictors; 'lincomb' linear combinations |
xlab |
a title for the x axis |
ylab |
a title for the y axis |
main |
an overall title for the plot |
hpd |
TRUE if highest posterior density (HPD) interval is plotted (FALSE by default) |
A plot of posterior mean and credible band for a nonlinear function estimated by INLA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.