We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
First of all, thanks a lot for this awesome package.
Currently, plotting fails with an ambiguous message if row/col annotation is continuous and contains missing values:
library(iheatmapr) library(datasets) library(reshape2) Indometh_matrix <- acast(Indometh, Subject ~ time, value.var = "conc") Indometh_matrix <- Indometh_matrix[as.character(1:6),] rownames(Indometh_matrix) <- paste("Patient",rownames(Indometh_matrix)) Indometh_patient_cor <- cor(t(Indometh_matrix)) patient_max_conc <- apply(Indometh_matrix,1,max) patient_min_conc <- apply(Indometh_matrix,1,min) patient_groups <- c("A","A","B","A","B","A") # Arbitrary groups patient_max_conc[[1]] <- NA iheatmap(Indometh_patient_cor, row_annotation = data.frame("Max" = patient_max_conc)) # Error in if (diverging) { : missing value where TRUE/FALSE needed
The issue stems from these lines not using na.rm=TRUE
na.rm=TRUE
iheatmapr/R/annotations.R
Lines 70 to 73 in b9fd1bc
Lines 161 to 164 in b9fd1bc
Alternatively, you can modify pick_conitnuous_colors to accommodate diverging=NA.
pick_conitnuous_colors
diverging=NA
Cheers.
The text was updated successfully, but these errors were encountered:
Thanks for bringing up the issue and identifying the code responsible -- have now put in a PR with a fix for this!
Sorry, something went wrong.
No branches or pull requests
First of all, thanks a lot for this awesome package.
Currently, plotting fails with an ambiguous message if row/col annotation is continuous and contains missing values:
The issue stems from these lines not using
na.rm=TRUE
iheatmapr/R/annotations.R
Lines 70 to 73 in b9fd1bc
iheatmapr/R/annotations.R
Lines 161 to 164 in b9fd1bc
Alternatively, you can modify
pick_conitnuous_colors
to accommodatediverging=NA
.Cheers.
The text was updated successfully, but these errors were encountered: