Learn R Programming

GPrank (version 0.1.4)

getYlimits: Setting limits for the y-axis

Description

Function for setting decent y-axis limits.

Usage

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.

Examples

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab