getYlimits: Setting limits for the y-axis

Description Usage Arguments Value Author(s) Examples

Description

Function for setting decent y-axis limits.

Usage

1
getYlimits(Y, V, predY = NULL, predV = NULL, minRng = 0.5)

Arguments

Y

Matrix containing observed values; items in rows, time points in columns.

V

Matrix containing variances; items in rows, time points in columns.

predY

Matrix containing predicted values; items in rows, time points in columns.

predV

Matrix containing variances of the predicted values; items in rows, time points in columns.

minRng

Minimum range for the y axis in the plot. Default value is set to 0.5.

Value

Return y-axis limits.

Author(s)

Hande Topa, hande.topa@helsinki.fi

Examples

1
2
3
4
5
Y=matrix(c(1,2,3,4,5,6),2,3)
V=0.1*Y
predY=matrix(c(1,2,3,4,5,6),2,3)
predV=0.1*predY
y_lims=getYlimits(Y,V,predY,predV)

GPrank documentation built on May 2, 2019, 3:35 p.m.