I have created a wordcloud
and, have used wordcloud()
and ggplot()
. I am unable to add the word frequencies to respective words in the cloud. I want the labels to appear in a single size and not in the size/weight of the associated word.
Can somebody help me add the labels? I have checked similar links: How to display frequency in wordcloud
But I want the labels to be of standard size.
Sample code:
library(wordcloud)
wordcloud(BO$keywords, BO$bo, min.freq =1, scale=c(2.5,1), random.order = FALSE,
rot.per = 0,
colors = pal)+
geom_text_wordcloud_area(shape = "square", eccentricity = 2)+geom_text_repel(segment.size = 5, force = 1)
ggplot(BO, aes(label = keywords, size = bo), scale=c(6,5), min.freq = 1) +
geom_text_wordcloud(shape = "square", eccentricity = 2, area_corr=FALSE) +
scale_size_area(max_size = 6) +
theme_minimal()+
facet_wrap(~bo)+
scale_color_gradient(low = "lightblue", high = "darkblue")