Closed jhoelt closed 5 years ago
Note the bracket placement and capitalization in your examples. The following works for me:
centralityPlot(list(network1, network2), include ="all")
Thanks for your reply. It works now, but I had to re-install everything. Weird. Thanks for this great tool, I´m really looking forward to analyze my data with it.
Hi Sacha,
I just installed the devel version of qgraph in order to compare different networks with the centralityPlot function. This is the code: centralityPlot(list(network1, network2, include = "all"))
When I don´t use the include = "all" command it gives me only strength for both, but when I use it I get the following error:
Error in UseMethod("getWmat") : no applicable method for 'getWmat' applied to an object of class "character"
When I use centralityPlot(list(network1, network2), include ="ALL") it gives me the following error: Error: Faceting variables must have at least one value
I also tried centralityPlot(list(network1, network2, include = c("Strength", "Closeness","Betweenness","ExpectedInfluence"))) which gives me Error in UseMethod("getWmat") : no applicable method for 'getWmat' applied to an object of class "character" again.
But I would also like to have at least betweenness and closeness in the graph, too.
When I do this for only one network (centralityPlot(network1, include = "all"))) it works fine.
Any suggestions? Thanks, Jan