Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning message: ggrepel: 1 unlabeled data points (too many overlaps). Consider increasing max.overlaps

Tags:

r

pca

The code:

res <- PCA(decathlon, quanti.sup = 11:12, quali.sup = 13, ind.sup = 1:5)

gave me this message

Warning message: ggrepel: 1 unlabeled data points (too many overlaps). Consider increasing max.overlaps

like image 698
Bouregaa Samiha Avatar asked Sep 19 '25 11:09

Bouregaa Samiha


1 Answers

This is not an error. If no further messages appeared, nothing went wrong.

The PCA function produces a plot with the ggplot2 package and uses the ggrepel package to add nice labels for data points. The special thing about ggrepel is that it uses an iterative algorithm to place the labels in a way such that they do not overlap with each other or with the data points (more about ggrepel).

However, sometimes the data points are too crowded together and the algorithm finds no solution to place all labels. This is what your message means by "1 unlabeled data points". If it is no problem for you to have one unlabeled point in the plot, you can just ignore the message.

like image 165
benimwolfspelz Avatar answered Sep 21 '25 01:09

benimwolfspelz