Skip to content
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

Focus on one variable in a network_plot #175

Open
joaomaroco opened this issue Feb 7, 2024 · 0 comments
Open

Focus on one variable in a network_plot #175

joaomaroco opened this issue Feb 7, 2024 · 0 comments

Comments

@joaomaroco
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant