Network error plot: Weights must be positive

Hi, thanks for all your work, I have a question regarding the network plot.

I am not able to build a network plot for my model. It gives the following error for the following command.

Command:
network(final.diablo.model,
#comp = c(1,2),
blocks = c(1,2,3,4,5),
color.node = c(‘darkorchid’, ‘brown1’,‘green’,‘black’,“grey”),
cutoff = 0.8,
interactive =FALSE,
color.edge = hcl.colors(20, palette = “Red-Green”))

Error:
Error in layout_with_fr(list(5, FALSE, c(1, 2, 3, 4, 2, 3, 4, 4, 4), c(0, :
At core/layout/fruchterman_reingold.c:401 : Weights must be positive for Fruchterman-Reingold layout. Invalid value

I can make a circus plot and all other plots of the same model.

Here is a description of my data used for my Diablo model:
5 datasets:
$microbiome_genera 28 samples 143 features
$clinical_markers 28 samples 26 features
$feces_metabolome 28 samples1051 features
$plasma_markers 28 samples 1128 features
$plasma_ferulic_markers 28 samples 2 features

I have tried different designs ranging from 0 to 1 and different grids, it gives the same error.

Thank you, let me know if you need more information.

  • Aakash