Skip to content
Snippets Groups Projects
Commit 09860411 authored by Holger Brandl's avatar Holger Brandl
Browse files

cont. dba analysis for clusters

parent 89b15e70
No related branches found
No related tags found
No related merge requests found
......@@ -160,6 +160,9 @@ create_palette <- function(x, pal = 'Set1'){
ux <- sort(unique(x))
n <-length(ux)
if(n==0) return(c())
setNames(brewer.pal(name = pal, n = n)[1:n], ux)
}
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