I have a cluster with a lot of data points that overlap and are therefore hard to read. I have been attempting to reduce the font size using the "theme" function but so far I have only been able to change everything but the label point font size:
clust_1975F <- kmeans(df_1975F, 3, nstart = 25)
X11()
(fviz_cluster(clust_1975F, data = df_1975F)
ggtitle("Cluster for Females in 1975")
theme(text = element_text(size = 5)))
Cluster output with the use of "theme" function:
CodePudding user response:
OP, you're looking for labelsize=
, which is an argument for the fviz_cluster()
function from the factoextra
package. I encourage you to
To change the size of the text (let's make it larger here), you just need to run fviz_cluster()
with labelsize
set to something larger than the default setting (listed in