Learn R Programming

socviz (version 1.2)

color_pal: Draw a palette of colors

Description

Draw a palette of colors

Usage

color_pal(col, border = "gray70", ...)

Arguments

col

vector of colors

border

border

...

other arguments

Value

Plot of a color palette

Details

Borrowed from the colorspace library

Examples

Run this code
# NOT RUN {
color_pal(c("#66C2A5", "#FC8D62", "#8DA0CB"))
# }

Run the code above in your browser using DataLab