Description Usage Arguments Value Author(s) Examples
Function for setting decent y-axis limits.
1 | getYlimits(Y, V, predY = NULL, predV = NULL, minRng = 0.5)
|
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. |
Return y-axis limits.
Hande Topa, hande.topa@helsinki.fi
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.