Description Usage Arguments Details Value See Also

Plot posterior median of trend parameters and associated credible intervals.

1 2 3 4 |

`theta` |
A list generated by |

`mfit` |
An object containing posterior draws from a |

`obstype` |
Name of probability distribution of observations. This controls the back-transformation of the process parameters. Possible obstypes are 'normal', 'poisson', 'binomial', or 'coalescent'. Assumed link functions are the log for 'poisson' and 'coalescent', and logit for 'binomial'. |

`alpha` |
Controls level for 100*(1- |

`obsvar` |
Vector of observations. Assumed to be ordered by time with one observation per time point. If |

`uxvar` |
vector of unique values of the grid locations of the trend parameters. This can be a numeric or integer vector. Must be the same length as |

`xvar` |
x-variable for plotting observations |

`colset` |
Color set for trend and credible intervals. These are presets chosen with common color combinations. Choices are 'blue', 'purple', 'red', 'green', and 'gray'. This parameter is overridden If |

`trend.col` |
Color of the trend line. Any standard |

`bci.col` |
Color of the credible interval band. Any standard |

`pt.col` |
Color of data points if plotted with |

`pt.pch` |
Type of points to use if data plotted with |

`pt.cex` |
Size of points to use if data plotted with |

`ylab` |
Character string describing label for y-axis. Default is "y" if unspecified. |

`xlab` |
Character string describing label for x-axis. Default is "x" if unspecified. |

`main` |
Character string describing label for main title. Default is "" empty string. |

`ylim` |
Numeric vector with two elements describing limits of y-variable. Default is |

`xlim` |
Numeric vector with two elements describing limits of x-variable. Default is |

`...` |
Additional parameters passed to the |

The input can be either in the form of a list generated by the `extract_theta`

function (passed in as the `theta`

variable) or as a raw model fit object from `spmrf`

or `rstan`

(passed in as `mfit`

). Note that using `mfit`

is more computationally costly than using `theta`

because the `extract_theta`

function is called when `mfit`

is specified.

Returns a `plot`

object.

`plot`

, `points`

, `extract_theta`

, `spmrf`

, `stanfit`

, `array`

, `matrix`

, `data.frame`

faulknerjam/bnps documentation built on Oct. 18, 2018, 12:03 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.