Learn R Programming

plutor (version 0.1.0)

plot_colors: plot colors

Description

plot colors

Usage

plot_colors(x, ncol = 10, show_name = TRUE)

Value

ggplot object

Arguments

x

color values

ncol

color number of each row

show_name

use vector names as label, FALSE to show the color value

Examples

Run this code
plot_colors(gradient_colors(c("blue", "red"), 10))

Run the code above in your browser using DataLab