bri.band.ggplot: Plot credible band for a nonlinear function using ggplot()

View source: R/YY.R

bri.band.ggplotR Documentation

Plot credible band for a nonlinear function using ggplot()

Description

Plot credible band for a nonlinear function using ggplot()

Usage

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)

Arguments

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)

Value

A plot of posterior mean and credible band for a nonlinear function estimated by INLA


julianfaraway/brinla documentation built on April 6, 2023, 2:33 p.m.