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

Color bar in correlation matrix heatmap #1349

Closed
daamartins opened this issue Jul 2, 2021 · 2 comments
Closed

Color bar in correlation matrix heatmap #1349

daamartins opened this issue Jul 2, 2021 · 2 comments

Comments

@daamartins
Copy link

Dear all

Thank you so much for all the work you have put in setting this great tool. I am wondering whether it is possible to get the color bars for the heatmaps of correlation matrices? I cannot really find them. Is there an equivalent in ggplot that i could use?

Thanks

@vandenman
Copy link
Contributor

Hi @daamartins, the R code for the color bar is ggplot2::scale_fill_gradient2(limits = c(-1, 1), na.value = "white") (source). For more details on this scale, see https://ggplot2.tidyverse.org/reference/scale_gradient.html

@juliuspfadt
Copy link
Contributor

I will close this. @daamartins if you have any more questions please do not hesitate to ask.

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

No branches or pull requests

3 participants