Learn R Programming

bsamGP (version 1.2.6)

plot.fitted.bsad: Plot a fitted.bsad object

Description

Plots the predictive density for Bayesian density estimation model using logistic Gaussian process

Usage

# S3 method for fitted.bsad
plot(x, ggplot2, legend.position, nbins, ...)

Value

Returns a plot.

Arguments

x

a fitted.bsad object

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.

nbins

Number of bins used. Default is 30.

...

other options to pass to the plotting functions

See Also

bsad, fitted.bsad

Examples

Run this code
## See example for bsad

Run the code above in your browser using DataLab