Skip to content
Snippets Groups Projects
Commit a4a4697f authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fix warning on max color

parent a12e3ec3
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ heat<- heat[,-1]
heat<- as.matrix(heat)
colNumber <- 50
col <- rev(colorRampPalette(brewer.pal(12, "Spectral"))(colNumber))
col <- rev(colorRampPalette(brewer.pal(11, "Spectral"))(colNumber))
for (i in (colNumber+1):(colNumber+round((dist(range(heat)) - dist(range(heat[heat < 1]))) / dist(range(heat[heat < 1])) * colNumber))) {
col[i] <- col[colNumber]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment