make_color_bar_plot {usefun} | R Documentation |
Make a color bar plot
Description
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)!
Usage
make_color_bar_plot(color.vector, number.vector, title, x.axis.label = "")
Arguments
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 |
Examples
color.vector = rainbow(10)
number.vector = 1:10
title = "First 10 rainbow() colors"
make_color_bar_plot(color.vector, number.vector, title)
[Package usefun version 0.5.0 Index]