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

How to set col with just one color? #11

Closed
michaelofrancis opened this issue Sep 26, 2022 · 3 comments
Closed

How to set col with just one color? #11

michaelofrancis opened this issue Sep 26, 2022 · 3 comments

Comments

@michaelofrancis
Copy link

Hi, I want to color all points above the threshold as one color. I thought I could set a hex code for col, i.e. col="#DC7633", but that doesn't work. Any help would be appreciated. Thanks!

@kaustubhad
Copy link
Owner

Hi,
If it is a single string, then it tries to match to one of the internal palette names, so you need a little hack: repeat the same color string twice, e.g. specify col=c("#DC7633","#DC7633").
Please let me know if this doesn't work for you.

@michaelofrancis
Copy link
Author

That gave me this error:

Error in if (col == "greys") { : the condition has length > 1

@soumyasubhraparia
Copy link
Collaborator

Hi @michaelofrancis ,

I have fixed the problem now and have updated the package. You can try using the following code.

fastman(m,annotatePval = 2,colAbovePval = TRUE,col = c("#DC7633","#DC7633"))

You can find the output of this code snippet below.

check
Please let me know if this works for you.

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

3 participants