plot.fitted.bsam {bsamGP}R Documentation

Plot a fitted.bsam object

Description

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

Usage

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

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

Value

Returns a plot.

See Also

bsaq, bsaqdpm, bsar, bsardpm, fitted.bsam

Examples

## See examples for bsaq, bsaqdpm, bsar, and bsardpm

[Package bsamGP version 1.2.3 Index]