color_ramp | R Documentation |
These color ramp functions create color scales that can be used for making ggplot2 plots and gt tables. Color ramps are based on the palette_wjake color palette.
make_color_pal(colors, bias = 1)
ramp_blue(x)
ramp_yellow(x)
ramp_yelblu(x)
colors |
colors to interpolate; must be a valid argument to
|
bias |
a positive number. Higher values give more widely spaced colors at the high end. |
x |
Colors to pull from the color ramp. Numbers range from 0-1, which is a normalized sliding scale of the color ramp. |
make_color_pal
can be used to create a color ramp function for any set of
valid colors.
ramp_blue
, ramp_yellow
, and ramp_yelblu
are pre-made color ramps based
on the blue and yellow colors from the palette_wjake color palette.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.