Description Usage Arguments Details Value See Also Examples
This plots the observed data in a bcgpfitpred
object.
1 2 3 |
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. |
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.
Either one ggplot
object or a list of ggplot
objects that can be further customized using the ggplot2 package.
bcgpfitpred
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.