make_color_bar_plot: Make a color bar plot

View source: R/plot.R

make_color_bar_plotR 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 color.vector)

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)


usefun documentation built on Sept. 15, 2024, 1:06 a.m.