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

kpHeatmap Fails when only one y value that is not 1 #148

Open
drneavin opened this issue Feb 14, 2024 · 0 comments
Open

kpHeatmap Fails when only one y value that is not 1 #148

drneavin opened this issue Feb 14, 2024 · 0 comments

Comments

@drneavin
Copy link

Hello @bernatgel,

I've noticed an error that occurs when using kpHeatmap is used if there is only one y value and it is not 1:

Error in grDevices::rgb(cr(y), max = 255) : 
  color intensity NA, not in 0:255
Calls: kpHeatmap ... kpRect -> filterParams -> <Anonymous> -> <Anonymous>
In addition: Warning message:
In brewer.pal(length(values), "BrBG") :
  minimal value for n is 3, returning requested palette with 3 different levels

I can trick it to work if I set the value to 1 and then set the legend manually using the actual value.

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