plotGP: Plotting fitted GP models

Description Usage Arguments Value Author(s) Examples

Description

Function for plotting fitted GP model within its confidence region of 2 standard deviations.

Usage

1
2
plotGP(model, col_item = "gray", ylimits = NULL, write_xticks = TRUE,
  write_yticks = TRUE, jitterx = FALSE)

Arguments

model

GP model to be plotted.

col_item

RGB color code which will be used for the color of the GP plot.

ylimits

Numeric vector which contains minimum and maximum limits for the y axis.

write_xticks

Boolean: whether to write x ticks and labels or not

write_yticks

Boolean: whether to write y ticks and labels or not

jitterx

Boolean: whether to jitter duplicated x values or not

Value

Creates the plot of the fitted GP model.

Author(s)

Hande Topa, hande.topa@helsinki.fi

Examples

1
2
3
4
5
6
7
8
x=as.matrix(seq(1,10))
y=as.matrix(sin(x))
v=as.matrix(runif(10,0,0.5))
kernelTypes=c("rbf","white","fixedvariance")
model=constructModel(x,y,v,kernelTypes)
col_item=getColorVector()[1]
ylimits=c(min(y)-0.1,max(y)+0.1)
plotGP(model,col_item,ylimits)

PROBIC/GPrank documentation built on May 7, 2019, 11:53 p.m.