-
Notifications
You must be signed in to change notification settings - Fork 56
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
network plot to map the color range to the range of correlations in data #159
network plot to map the color range to the range of correlations in data #159
Conversation
…range of correlations in the data and not to the full range from -1 to 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! 🙌
I made a minor change to the documentation for the new options. Want to take a look at rlang::arg_match()
?
Co-authored-by: Julia Silge <julia.silge@gmail.com>
…ata (#159) (#160) * Adding an option for network plot to map the color range only to the range of correlations in the data and not to the full range from -1 to 1 * Adjust documentation for new options * Update R/cor_df.R Co-authored-by: Julia Silge <julia.silge@gmail.com> Co-authored-by: Julia Silge <julia.silge@gmail.com> Co-authored-by: Daryn Ramsden <thisisdaryn@gmail.com>
Ooops @thisisdaryn it seems like something went a little wonky with git here. It looks like the PR was to the |
Noted. My bad. Will look out for that in the future. Thanks. |
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
This PR is in response to #158.
network_plot()
has been modified so that thelegend
argument now takes 3 possible values:rdf
legend
toFALSE
in the previous implementation.Example of using
legend = "full"
:mtcars |> select(cyl, disp, hp, wt, carb) |> correlate() |> network_plot(legend = "full")
Example of using
legend = "range"
:mtcars |> select(cyl, disp, hp, wt, carb) |> correlate() |> network_plot(legend = "range")
Example of using
legend = "none"
:mtcars |> select(cyl, disp, hp, wt, carb) |> correlate() |> network_plot(legend = "none")
Not specifying any of the options will default to using the full range with a displayed legend.