genescale returns a scaled version of the input matrix m by applying
the following formula to each column of the matrix:
y[i] = ( x[i] - min(x) ) / ( max(x) - min(x) )
Input a matrix or a vector with numeric elements.
An integer indicating which axis of
Either "Z" or "R", indicating whether a Z scaling or a range scaling should be performed.
A boolean indicating whether
Either the rows or columns of
m are scaled. This is done either
by subtracting the mean and dividing by the standard deviation ("Z")
or by subtracing the minimum and dividing by the range.
A scaled version of the input.
m is a
matrix or a
dataframe then the
dimensions of the returned value agree with that of
in both cases the returned value is a
[,1] [,2] [,3] [1,] -1.1618950 -1.1618950 -1.1618950 [2,] -0.3872983 -0.3872983 -0.3872983 [3,] 0.3872983 0.3872983 0.3872983 [4,] 1.1618950 1.1618950 1.1618950
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.