-
Notifications
You must be signed in to change notification settings - Fork 16
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 in check.length(gparname) : 'gpar' element 'lwd' must not be length 0 #82
Comments
So I tested. Different versions of the package were not the issue. When I analyze the data on our server instead of the local computer, the error went away. Not sure the underlying issue still, but I hope it helps. |
This sounds like it might be a dependency issue somewhere. Can you please post the full error message (the output from |
This looks like it is a problem rendering the plot rather than something inside {clustree}. Can you try the default settings without setting any arguments (except Also small note, it's generally better to include code as text using the |
Thank you for your advice. Please see below. I do not have any issue making other plots using other packages. Only all the plotting functions of the clustree package that had this same error. This error was not specific to my Seurat object, because here I used pbmc3k object available from SeuratData, and the same issue occured.
|
Can you please also post the output of |
|
Thanks for looking into this issue @lazappi ! I was using the Cairo graphics device backend setting and switched to default but the outcome didn't change. Just in case I tried all other backend settings and downgrading the installed ggplot from its developer version ( When I check |
It looks like you are both using a development version of {ggplot2}. Can you please try with the current release version (v3.3.6)? |
I also used the current release version (v3.3.6), and the outcome didn't change. |
Hmmm...ok. I'm running out of obvious ideas for where this might be coming from. I think it will take a bit more investigation to pin down. Unfortunately I won't have time to look into it too much for the next few weeks. |
My issue is spontaneously resolved, presumably thanks to the update of one of the graphics/matrix dependency packages.
|
I stumbled upon this error as well, which eventually resolved after updating |
Ok, thanks for the update! If anyone is able to pin down exactly which package/version combinations are the issue I'm happy to update the dependencies but without that I'm not sure there is much I can do. |
+1 for @yoda-vid recommendation - updating from |
+1 for @yoda-vid recommendation as well. Updating ggraph package from 2.0.6 to 2.1.0 worked for me too. |
+1 for @yoda-vid recommendation as well. Updating ggraph package from 2.0.5 to 2.1.0 worked for me too. |
+1 for @yoda-vid recommendation as well. I reinstalled clustree and update ggraph from 2.0.6 to 2.1.0. Works well. Thanks a lot. |
+1 @yoda-vid updating ggraph from 2.0.5 to 2.1.0 worked for me as well. |
Hello,
I was happily using
clustree
package for a while.However, I received an error message when I run this code;
clustree(x = my_data,prefix = "RNA_snn_res.",exprs = "data",assay = "RNA")
Metadata of my data is below, and everything seems in order from my side.
I really appreciate if you can help me to fix the issue leading to
'gpar' element 'lwd' must not be length 0
error.The text was updated successfully, but these errors were encountered: