plot.fitted.bsamdpm {bsamGP}R Documentation

Plot a fitted.bsamdpm object

Description

Plots the data and the fit for Bayesian spectral analysis models with Dirichlet process mixture error.

Usage

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

Arguments

x

a fitted.bsamdpm object

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

bsaqdpm, bsardpm, fitted.bsamdpm

Examples

## See examples for bsaqdpm and bsardpm

[Package bsamGP version 1.2.5 Index]