-
Notifications
You must be signed in to change notification settings - Fork 95
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
Error for plot_multiplex3D #33
Comments
There is the same issue with the line !is.na(layer.labels) && !is.null(layer.labels). I modified both lines of code and the tutorial example got running successfully to retun the stacked 3D multilayer graph. |
Can you please share the code and modifications and steps used to get this to work?Sent from my iPhoneOn Aug 31, 2023, at 12:13, Patrick-Wen ***@***.***> wrote:
There is the same issue with the line !is.na(layer.labels) && !is.null(layer.labels). I modified both lines of code and the tutorial example got running successfully to retun the stacked 3D multilayer graph.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
I did not formally correct the code, I just deleted the two aforementioned lines (i.e., !is.na(layer.labels) && !is.null(layer.labels) and !is.na(layer.labels) && !is.null(layer.labels) ) and the associated if statement to require the code specified in the if statement to be run directly without being checked. This is suitable for running the example in the tutorial since the condition specified by the if statement is satisfied. Certainly, a more general approach is to update the if statement rather than simply delete it. I downloaded the zip file from GitHub, unzip the folder, find the function plot_multiplex3D in "...\muxViz-master\R\muxLib_plot_functions.R", and deleted the corresponding lines. Then I compressed the modified package to a new zip file, and use devtools::install_local("") to install this package. Then run the code in the tutorial, that worked. |
I followed the tutorial for "Multilayer community detection" (.../Documents/GitHub/muxViz/docs/articles/ml_community.html) but got an error when running
Here is the error message:
Error in !is.na(layer.labels) && !is.null(layer.labels) :
'length = 3' in coercion to 'logical(1)'
The first line returns 3 TRUE while the second only 1, so when using &&, an error is returned. This seems to be an inherent error in the source code. I suspect this issue should be resolved internally. Please let me know if I am wrong.
The text was updated successfully, but these errors were encountered: