Skip to contents

Creates a nested list of ggplot2 objects with partitioned data, requires the user to add layers.

Usage

# S3 method for bmoe_fit
autoplot(object, varname, type = "none", ..., new_data)

Arguments

object

Object that inherits from bmoe_fit.

varname

character. Variable name defined in the model.

type

choice. Name of the supported plot type including

  • "none", plots are to be empty until the user adds layers.

  • "density", useful distribution visualisation.

  • "trace", useful for verifying chain convergence.

  • "acf", autocorrelation of the MCMC samples at discrete lags. Alternatively one can pass a list of custom layers to be added.

...

Extra arguments silently ignored.

new_data

Passed to extract_log_lik(); ignored otherwise.