Closed jwijffels closed 3 years ago
Quick comment on this. I would recommend to only set up a function that generates the network data so that users may define the plotting options. There are so many variations for plotting networks depending on the context that one might probably not cover in a single function. E.g. highlightig vertex size based on centrality metrics (betweenness, degree, etc) or setting thresholds for plotting only the strongest edges, etc. This is just a recommendation from my personal experience, it might still make sense to provide a plotting option for a simple standard case, but I think it would makes sense that the output of the function includes the network data in addition to the plot.
Thanks for the feedback. Agree on this but mainly because I don't want to include the ggraph dependency chain in the package (functions terms(model, type = "tokens", top_n = 5)
and terms(model, type = "biterm", top_n = 5)
give you already all data you need for the visualisation).
Probably a separate package with plotting facilities for all kinds of topic models would be better.
Which packages do you tend to use for visualisation of text networks?
I also agree that it makes sense to keep it simple. I am not an outstanding expert in network science and simply use igraph (which is wrapped in ggraph) - some of my colleagues use the software solutions Gephi or Cytoscape, which are also interesting options depending on the purpose. So probably you are right with the idea to set up an additional package but still provide examples here for BTM using this package...
I've added plot.BTM as part of the texplot package https://cran.r-project.org/package=textplot somewhere in april 2020. So closing.
Example of vis, still need to define how to incorporate this in the package.