genes {made4} | R Documentation |
Returns an index of the top n maximum and minimum values in 2 columns of a matrix or data.frame.
genes(dudivar,n=5, axes1=1, axes2=2)
dudivar |
a data frame or matrix with at least two
columns, containing the x,y coordinates. |
axes1 |
the column number for the x-axis~ |
axes2 |
the column number for the y-axis~ |
n |
{n is the number of genes to be extracted}
Genes returns an index of the "top" variables at the ends of the x and y axes. Genes is not normally called by the user but is called by plotgenes()
If you wish to return a table or list of the top genes at
the end of an axis, use the function topgenes
.
Thanks to Miss Jess Mar for helping on this function.
Aedin Culhane
See Also as plotgenes