Skip to content

Added log transformation argument for color scale #316

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

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

ThomasKAtkins
Copy link

Because p-values are often more symmetrically distributed on a log scale, the current color scale leads to many instances of plots where the highest p-value is orders of magnitude larger than all other p-values, so the largest p-value shows up as blue, and all others are an indistinguishable shade of red. See:

example_enrichplot_4
example_enrichplot_3
example_enrichplot_2
example_enrichplot_1

Because the field standard is to display p-values on a log scale (e.g. in a volcano plot), this PR adds an option to the set_enrichplot_color function that transforms the color scale to a log scale, and makes it the default.

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

Successfully merging this pull request may close these issues.

1 participant