Learn R Programming

myTAI (version 0.9.3)

bar.colors: Color palette for barplots

Description

A nice color palette for barplots with several bars.

Usage

bar.colors(n)

Arguments

n

the number of colors to be in the palette.

Value

a character vector containing different color names that can be used for barplots.

Details

This function can be used to select colors for bar plots.

Examples

Run this code
# NOT RUN {
# get 5 different colors for 5 different bars
barplot_colors <- bar.colors(5)
# }

Run the code above in your browser using DataLab