Search
 
SCRIPT & CODE EXAMPLE
 

R

color blind friendly palette r

# n - number of colors in the palette
get_palette <- function(n) {
	require(RColorBrewer)
	colors <- brewer.pal.info[brewer.pal.info$colorblind == TRUE, ]
	col_vec <- unlist(mapply(brewer.pal, colors$maxcolors, rownames(colors)))
	return(sample(col_vec, n))
}
Comment

PREVIOUS NEXT
Code Example
R :: R: reverse-stacked-bar-order 
R :: r predict type 
R :: count certain number of alphabets in a string r 
R :: Add tab in string r 
R :: save large nested list to text R 
R :: required in r 
R :: del row matrix r 
R :: change order of levels, reference 
R :: how to upload multiple excel files r 
R :: combine scripts into a pipeline 
R :: predict y given model in r 
R :: combine row for every element of vector r 
R :: ggplot box plot without outliers poins 
Rust :: how to index a string in rust 
Rust :: rust filtering a vector example 
Rust :: rust null 
Rust :: bevy input 
Rust :: calculator in rust 
Rust :: rust concat 
Rust :: check if a string contains consecutive letters that occur only once 
Rust :: floor float rust 
Rust :: armanriazi•rust•union 
Rust :: rust fill vector with range 
Rust :: rust get items in a list 
Rust :: execution duration 
Lua :: how to disable animations roblox 
Lua :: roblox player joined 
Lua :: open gui script 
Lua :: how do you close the lua program 
Lua :: roblox number generator 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =