make_color_bar_plot | R Documentation |
Use this function when you want to visualize some numbers and their respective color values. Note that more than 42 colors won't be nice to see (too thin bars)!
make_color_bar_plot(color.vector, number.vector, title, x.axis.label = "")
color.vector |
vector of color values |
number.vector |
vector of numeric values (same length with
|
title |
string. The title of the barplot |
x.axis.label |
string. The x-axis label. Default value: empty string |
color.vector = rainbow(10)
number.vector = 1:10
title = "First 10 rainbow() colors"
make_color_bar_plot(color.vector, number.vector, title)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.