Learn R Programming

bsamGP (version 1.2.6)

plot.fitted.bsamdpm: 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 fitted.bsamdpm
plot(x, ask, ggplot2, legend.position, ...)

Value

Returns a plot.

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

See Also

bsaqdpm, bsardpm, fitted.bsamdpm

Examples

Run this code
## See examples for bsaqdpm and bsardpm

Run the code above in your browser using DataLab