| col_mix | R Documentation | 
Produces an interpolation of two colours.
col_mix(a, b, amount = 0.5, space = "rgb")
a | 
 Either a character vector of colours or a colour palette function.  | 
b | 
 A character vector of colours.  | 
amount | 
 A numeric fraction between 0 and 1 giving the contribution of
the   | 
space | 
 A string giving a colour space to perform mixing operation in. Polar spaces are not recommended.  | 
A character vector of colours.
Other colour manipulation: 
alpha(),
col2hcl(),
colour_manip,
muted()
col_mix("blue", "red") # purple
col_mix("blue", "red", amount = 1) # red
col_mix("blue", "red", amount = 0) # blue
# Not recommended:
col_mix("blue", "red", space = "hcl") # green!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.