I'm thinking about adding a plot.BTM function to my BTM package using ggraph. BTM is good for clustering text (https://cran.r-project.org/web/packages/BTM/index.html).
In order to have a good layout, I would like to be able to group together similar nodes or similar edges such that they are plotted in the neighbourhood of one another.
Using the following code I basically generate the following graph but I would like to group nodes together in the graph based on the same best_topic. Do you have a suggestion what layout to use (or another algorithm from maybe the igraph package to make sure the nodes with the same best_topic are put close together on the graph.
Hello,
I'm thinking about adding a plot.BTM function to my BTM package using ggraph. BTM is good for clustering text (https://cran.r-project.org/web/packages/BTM/index.html). In order to have a good layout, I would like to be able to group together similar nodes or similar edges such that they are plotted in the neighbourhood of one another.
Using the following code I basically generate the following graph but I would like to group nodes together in the graph based on the same best_topic. Do you have a suggestion what layout to use (or another algorithm from maybe the igraph package to make sure the nodes with the same best_topic are put close together on the graph.
many thanks!