Learn R Programming

bsamGP (version 1.2.6)

plot.fitted.bsam: Plot a fitted.bsam object

Description

Plots the data and the fit for Bayesian spectral analysis models.

Usage

# S3 method for fitted.bsam
plot(x, type, ask, ggplot2, legend.position, ...)

Value

Returns a plot.

Arguments

x

a fitted.bsam object

type

the type of fitted plot. The default is on the scale of the response variabletype="response"; the alternative type="term" is on the scale of the nonparametric predictor. Note that this affects only on glm type models. For example, binomial model with the default option gives the predicted probabilites.

ask

see. par

ggplot2

a logical variable. If TRUE the ggplot2 package is used.

legend.position

the position of legends (“none”, “left”, “right”, “bottom”, “top”). It is used when ggplot2 = TRUE.

...

other options to pass to the plotting functions

See Also

bsaq, bsaqdpm, bsar, bsardpm, fitted.bsam

Examples

Run this code
## See examples for bsaq, bsaqdpm, bsar, and bsardpm

Run the code above in your browser using DataLab