# NOT RUN {
Sys.unsetenv("LARES_FONT") # Temporal
data("iris")
df <- subset(iris, select = c(-Species))
# Find optimal k
check_k <- clusterKmeans(df, limit = 10)
check_k$nclusters_plot
# You can also use our other functions:
# clusterOptimalK() and clusterVisualK()
# Run with selected k
clusters <- clusterKmeans(df, k = 3)
names(clusters)
# Cross-Correlations for each cluster
plot(clusters$correlations)
# PCA Results
plot(clusters$PCA$plotVarExp)
plot(clusters$PCA$plot_1_2)
# You must have \code{ggforce} library to use this auxiliary function:
# 3D interactive plot
# }
# NOT RUN {
clusters$PCA$plot_1_2_3
# }
Run the code above in your browser using DataLab