Description Usage Arguments Value Author(s) Examples
Function for plotting fitted GP models within its confidence region of 2 standard deviations for the two-sample model.
1 2 | plotTwoSampleGP(model, index, col_item = "gray", ylimits = NULL,
write_xticks = TRUE, write_yticks = TRUE, jitterx = FALSE)
|
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 |
Creates the plot of the fitted GP model.
Hande Topa, hande.topa@helsinki.fi; Antti Honkela, antti.honkela@helsinki.fi
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.