getClusterCenters.Rd
For given dimensional reduction (e.g., UMAP), return cluster center coordinates.
getClusterCenters(df, which.center = "mean")
data.frame with columns 'x' and 'y' specifying dimensional reduction coordinates, and column 'cluster' or 'clusters' specifying cluster membership.
Specify which central values to use. One of 'mean' or 'median'. Default is 'mean'.
df.centers
# compute cluster centers
which.center <- "mean"
df.red.centers <- get.cluster.centers(df.red, which.center)
#> Error in get.cluster.centers(df.red, which.center): could not find function "get.cluster.centers"