Learn R Programming

shrinkGPR (version 1.1.1)

plot.shrinkGPR: Graphical summary of posterior of theta

Description

plot.shrinkGPR generates a boxplot visualizing the posterior distribution of theta obtained from a fitted shrinkGPR object.

Usage

# S3 method for shrinkGPR
plot(x, nsamp = 1000, ...)

Value

Called for its side effects. Returns invisible(NULL).

Arguments

x

a shrinkGPR object.

nsamp

a positive integer specifying the number of posterior samples to draw for plotting. The default is 1000.

...

further arguments passed to the internal boxplot function, such as axis labeling or plotting options. By default, las = 2 is used unless explicitly overridden by the user.

Author

Peter Knaus peter.knaus@wu.ac.at

See Also

Other plotting functions: plot.shrinkGPR_marg_samples_1D(), plot.shrinkGPR_marg_samples_2D(), plot.shrinkTPR()

Examples

Run this code
# \donttest{
# Simulate and fit a shrinkGPR model, then plot:
sim <- simGPR()
mod <- shrinkGPR(y ~ ., data = sim$data)
plot(mod)

## Change axis label orientation
plot(mod, las = 1)
# }

Run the code above in your browser using DataLab