Skip to content

Commit

Permalink
fix for #34
Browse files Browse the repository at this point in the history
  • Loading branch information
kassambara committed May 23, 2017
1 parent 1eccf99 commit d678847
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Expand Up @@ -4,6 +4,7 @@

- Now, the argument `invisible` works properly in the function `fviz_pca_biplot()`([@ginolhac, #26](https://github.com/kassambara/factoextra/issues/26)).
- The function `fviz_dend()` now works for an object of class `diana` ([@qfazille, #30](https://github.com/kassambara/factoextra/issues/30)).
- Now, `fviz_cluster()` supports for HCPC ([@famuvie, #34](https://github.com/kassambara/factoextra/issues/34)).

## Minor changes

Expand Down
2 changes: 1 addition & 1 deletion R/fviz_cluster.R
Expand Up @@ -142,7 +142,7 @@ fviz_cluster <- function(object, data = NULL, choose.vars = NULL, stand = TRUE,
}
# HCPC in FactoMineR
else if(inherits(object, "HCPC")) {
object$cluster <- res.hcpc$call$X$clust
object$cluster <- object$call$X$clust
data <- res.hcpc <- object
stand <- FALSE # to avoid trying to standardize HCPC results
# data <- object$data.clust[, -ncol(object$data.clust), drop = FALSE]
Expand Down

0 comments on commit d678847

Please sign in to comment.