show_color: An easy way to show colors in ggplot2

Description Usage Arguments Author(s)

View source: R/show_color.R

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

1
2
3
4
5
6
7
8
9
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


ch documentation built on July 9, 2021, 9:07 a.m.