plotTwoSampleGP: Plotting fitted GP models for two-sample model

Description Usage Arguments Value Author(s) Examples

Description

Function for plotting fitted GP models within its confidence region of 2 standard deviations for the two-sample model.

Usage

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

Arguments

model

GP model to be plotted.

index

sample index of the model to be plotted from the two-sample model.

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; Antti Honkela, antti.honkela@helsinki.fi

Examples

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

plotTwoSampleGP(model,index,col_item,ylimits)

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