Skip to content

Focus on one variable in a network_plot #175

@joaomaroco

Description

@joaomaroco

Hi there,
Thanks for the great network_plot function.

I wonder if we can just focus on a single variable in the correlation matrix.

For example:

res.cor <- correlate(pmeans[,-c(1:2)])|> focus(BELONG)
network_plot(res.cor, min_cor = 0.5, colors = c("red", "green"))

produces:
image

But I would just like to represent the correlations with "BELONG" (bottom left) the others could be grayed out, or just removed. Also the thickness of the lines could also be proportional to the absolute value of the correlations, and the colors would represent the signal.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions