plot.gpr: Plot GPR model for either training or prediction

View source: R/gp.functions6.R

plot.gprR Documentation

Plot GPR model for either training or prediction

Description

Plot Gaussian process for a given an object of class 'gpr'.

Usage

## S3 method for class 'gpr'
plot(
  x,
  fitted = F,
  col.no = 1,
  ylim = NULL,
  realisation = NULL,
  main = NULL,
  cex.points = NULL,
  lwd.points = NULL,
  pch = NULL,
  lwd = NULL,
  ...
)

Arguments

x

The 'gpr' object from either training or predicting of the Gaussian Process.

fitted

Logical. Plot fitted values or not. Default to FALSE. If FALSE, plot the predictions.

col.no

Column number of the input matrix. If the input matrix has more than one columns, than one of them will be used in the plot. Default to be the first one.

ylim

Range value for y-axis.

realisation

Integer identifying which realisation should be plotted (if there are multiple).

main

Title for the plot

cex.points

Graphical parameter

lwd.points

Graphical parameter

pch

Graphical parameter

lwd

Graphical parameter

...

Graphical parameters passed to plot().

Value

A plot

Examples

## See examples in vignette:
# vignette("gpr_ex1", package = "GPFDA")

GPFDA documentation built on Sept. 11, 2023, 1:08 a.m.