powered by
Groups the points with the clusters given by k-means in a interactive 3D PCA scores plot.
pca_kmeans_plot3D(dataset, pca.result, num.clusters = 3, pcas = c(1, 2, 3), kmeans.result = NULL, labels = FALSE, size = 1, ...)
list representing the dataset from a metabolomics experiment.
prcomp object with the PCA results.
number of clusters of k-means.
vector with the principal components to be plotted.
result from k-means. If null k-means is performed in the function.
boolean value indicating if the samples' labels will be shown.
parameter of plot3d from rgl package.
additional parameters of plot3d function from rgl package.
# NOT RUN { ### Example of a 3D PCA k-means plot pca.result = pca_analysis_dataset(cachexia) pca_kmeans_plot3D(cachexia, pca.result, num.clusters = 3, pcas = c(1,2,3)) # }
Run the code above in your browser using DataLab