powered by
Function for setting decent y-axis limits.
getYlimits(Y, V, predY = NULL, predV = NULL, minRng = 0.5)
Matrix containing observed values; items in rows, time points in columns.
Matrix containing variances; items in rows, time points in columns.
Matrix containing predicted values; items in rows, time points in columns.
Matrix containing variances of the predicted values; items in rows, time points in columns.
Minimum range for the y axis in the plot. Default value is set to 0.5.
Return y-axis limits.
# 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