stefpeschel / NetCoMi

Network construction, analysis, and comparison for microbial compositional data
GNU General Public License v3.0
143 stars 24 forks source link

Plotting with different line style #103

Closed indrikwijaya closed 8 months ago

indrikwijaya commented 8 months ago

Hi @stefpeschel ,

Thanks for such a wonderful work for this package! I have a question whether the plot function allows for different line styles for the edges of the network. So, for example, any edges with correlation lower than 0.5 will be plotted as dashed lines, whereas any edges with correlation greater than 0.5 will be plotted as solid lines.

stefpeschel commented 8 months ago

Hi, Unfortunately, that's not possible. The qgraph() function, which NetCoMi uses for network plotting, has a lty argument, which you can also use in NetCoMi's plot function. However, the option to change the line type depending on the correlation is not implemented. Currently, edges with a weight below a threshold (defined via the cut parameter) can only be handled differently in terms of edge width and transparency.

indrikwijaya commented 8 months ago

Hi Stefanie,

Thank you for your reply!