Skip to content
Prev 378203 / 398502 Next

R help: fviz_nbclust’ is not available (for R version 3.5.2)

Hi,

fviz_nbclust is a function within the package factoextra. Once you
have installed the package and loaded it, you do not need to
explicitly install the function.

You probably also don't need FunCluster - I think you may be confusing
that package with the FUNcluster argument to the fviz_nbclust
function.

Do take a look at
?fviz_nbclust
for help and a working example.

library(factoextra)
library(NbClust)
# Standardize the data
load("df4.rda")
fviz_nbclust(df4, FUNcluster, method = c("silhouette", "wss", "gap_stat"))

Sarah
On Wed, Jan 16, 2019 at 2:00 PM N Meriam <meriam.nef at gmail.com> wrote: