powered by
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 = "")
vector of color values
vector of numeric values (same length with color.vector)
color.vector
string. The title of the barplot
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)
Run the code above in your browser using DataLab