Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contralityPlot: include = "all" does not work #27

Closed
jhoelt opened this issue Mar 15, 2019 · 2 comments
Closed

contralityPlot: include = "all" does not work #27

jhoelt opened this issue Mar 15, 2019 · 2 comments

Comments

@jhoelt
Copy link

jhoelt commented Mar 15, 2019

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

@SachaEpskamp
Copy link
Owner

Note the bracket placement and capitalization in your examples. The following works for me:

centralityPlot(list(network1, network2), include ="all")

@jhoelt
Copy link
Author

jhoelt commented Mar 26, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants