kmeans_haystack.Rd
Function for k-means clustering of genes according to their expression distribution in 2D or multi-dimensional space
kmeans_haystack(x, expression, grid.coordinates, k, ...)
# S3 method for matrix
kmeans_haystack(x, expression, grid.coordinates, k, ...)
# S3 method for data.frame
kmeans_haystack(x, expression, grid.coordinates, k, ...)
a matrix or other object from which coordinates of cells can be extracted.
expression matrix.
coordinates of the grid points.
number of clusters.
further parameters passed down to methods.