kmeans_plot: Plot kmeans clusters

Description Usage Arguments Examples

View source: R/clustering.R

Description

Plot for each formed cluster, in grey the values of all samples of that cluster and in blue the median of that samples.

Usage

1
kmeans_plot(dataset, kmeans.result)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

kmeans.result

object of class kmeans with the clustering results.

Examples

1
2
3
4
5
6
  ## Example of kmeans plot - dataset filtered for performance purposes
  library(specmine.datasets)
  data(cachexia)
  kmeans.result = kmeans_clustering(cachexia, 
		  num.clusters = 4, type = "samples")
  kmeans_plot(cachexia, kmeans.result)

specmine documentation built on Sept. 21, 2021, 5:06 p.m.