Search
 
SCRIPT & CODE EXAMPLE
 

R

colorblind-friendly palette in 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 :: %in% in r 
R :: faceted bar chart in r 
R :: pairing in r 
R :: extract rse from lm in r 
R :: fcrit in r 
R :: save link tweet in new column in R 
R :: r select column names starting with 
R :: Print the names of all worksheets in r 
R :: barplot_density 
R :: imputation in r 
Rust :: how to exit the program rust 
Rust :: rust vec cannot move 
Rust :: rust get items in a list with index and value 
Rust :: how to make an array in rust 
Rust :: get length of vector rust 
Rust :: rust javascript 
Rust :: rust•armanriazi•thread•unsafe 
Rust :: rust while loop 
Rust :: armanriazi•rust•static•vs•cons 
Rust :: rust convert binary data into ASCII text using Base64 RFC 4648. 
Rust :: rust comments 
Rust :: rust match wildcard 
Rust :: rust init vector with range 
Rust :: armanriazi•rust•smartpointer•box•vs•rc•vs•refcell 
Lua :: how to execute scripts when a button gui is pressed roblox 
Lua :: luau kill brick script 
Lua :: lua table is empty 
Lua :: lua find key in table 
Lua :: how to define a player roblox studio 
Lua :: lua calculator 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =