I am trying to plot several wordclouds in a scatterplot and I wonder if one can control the position of a wordcloud in ggplot? As an example the code below overlays both wordclouds around the origin of the plot. Say I want to place the second wordcloud at x=4 and y =35. Is that possible?
library(ggplot2) library(ggwordcloud) ggplot() + geom_point(mtcars,mapping=aes(wt,mpg)) + geom_text_wordcloud(love_words_small,mapping=aes(label=word)) + geom_text_wordcloud(mtcars,mapping=aes(label=rownames(mtcars))) + theme_minimal()
Perhaps you could save the wordclouds as separate plots, and then add them to one plot with cowplot or gridExtra or any of the packages that lets you combine plots?
cowplot
gridExtra
1.4m articles
1.4m replys
5 comments
57.0k users