Description Usage Arguments Value Author(s) Examples
Calculate the Silhouette value for
1 |
DataMatrix |
a matrix with the raw data, 1 variable per column. |
GroupIndices |
The vector with the roup indices (length must be equal to the amount of rwos in DataMatrix). |
distance |
The distance metric to be used, see daisy. |
stand |
whether to standardize the data before calculating the dissimilarities. See daisy. |
Returns the silhouette values.
Charlie Beirnaert, charlie.beirnaert@uantwerpen.be
1 2 3 4 5 6 7 8 | ## Not run:
# This function works on aligned peak data
library(ggplot2)
Silhouette.values = SilhouetR(DataMatrix = Aligned.peaks$peakPPM,
Aligned.peaks$peakIndex, distance = 'euclid', stand = TRUE)
ggplot(SilhouetteValues, aes(SilhouetteValues)) +geom_freqpoly(binwidth = 0.03) +theme_bw()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.