Learn R Programming

FBMS (version 1.3)

plot.fbms_predict: Plot FBMS Prediction Object

Description

Plots the mean predictions and quantile intervals from an FBMS prediction object, with quantiles in varying shades of grey.

Usage

# S3 method for fbms_predict
plot(x, ...)

Value

Plots the predictions and returns NULL.

Arguments

x

Object of class "fbms_predict".

...

Additional arguments passed to plot.

Examples

Run this code
# \donttest{
data(exoplanet)
model <- fbms(semimajoraxis ~ ., data = exoplanet)
pred <- predict(model, exoplanet[51:60, -1], 
quantiles = c(0.025, 0.1, 0.5, 0.9, 0.975))
plot(pred)
# }

Run the code above in your browser using DataLab