show_color {ch}R Documentation

An easy way to show colors in ggplot2

Description

the same function can see show_col, but it is a ggplot2 object. You can use it like the show_col() function in scales package, but it can save by ggsave() function.

Usage

show_color(
  colors,
  ncol,
  byrow = TRUE,
  label = FALSE,
  number = FALSE,
  size = 1,
  border = "black"
)

Arguments

colors

string about colors

ncol

the number f col

byrow

logical

label

logical

number

logical, the default is

size

the size of label, the default is 1.

border

The color of border

Author(s)

Chai


[Package ch version 0.1.0.2 Index]