plot-bcgpfitpred-ANY-method: Plot a bcgpfitpred object

Description Usage Arguments Details Value See Also Examples

Description

This plots the observed data in a bcgpfitpred object.

Usage

1
2
3
## S4 method for signature 'bcgpfitpred,ANY'
plot(x, ..., decomposition = FALSE,
  print = TRUE)

Arguments

x

An instance of class bcgpfitpred

...

optional parameters

decomposition

A logical indicating whether to plot the data process decomposed into global and local processes (TRUE) or the overall process by itself (FALSE). This parameter is ignored when the data has dimension larger than 1. Defaults to FALSE

print

A logical indicating whether to automatically print the plots. Defaults to TRUE.

Details

Plotting predictions helps to visualize the predictions at new data locations and how well the model performs. Plotting is only supported for one-dimensional data.

Value

Either one ggplot object or a list of ggplot objects that can be further customized using the ggplot2 package.

See Also

bcgpfitpred

Examples

1
2
3
4
5
6
7
8
simData <- bcgpsims(composite = TRUE, stationary = FALSE, noise = FALSE,
                    d = 1, decomposition = TRUE)

model <- bcgpmodel(x = simData@training$x, y = simData@training$y,
                   composite = TRUE, stationary = FALSE, noise = FALSE)
fit <- bcgp_sampling(model, scaled = TRUE, cores = 4, nmcmc = 1000,
                     burnin = 500)
plot(fit)

cbdavis33/bcgp documentation built on Oct. 1, 2019, 8:07 a.m.