view_colors_regex: View Colors Via Regex

View source: R/color.R

view_colors_regexR Documentation

View Colors Via Regex

Description

View Colors Via Regex

Usage

view_colors_regex(
  pattern,
  invert = FALSE,
  labels = TRUE,
  borders = NULL,
  cex_label = 0.5,
  ncol = NULL
)

Arguments

pattern

character string containing a regular expression (or character string for fixed = TRUE) to be matched in the given character vector. Coerced by as.character to a character string if possible. If a character vector of length 2 or more is supplied, the first element is used with a warning. Missing values are allowed except for regexpr and gregexpr.

invert

logical. If TRUE return indices or values for elements that do not match.

labels

If TRUE, the plot is labelled with the color name. Default: TRUE

borders

Color for rectangle border(s) that is passed to rect(), Default: NULL

cex_label

Numeric character expansion factor; multiplied by par("cex") yields the final character size. NULL and NA are equivalent to 1.0, Default: 0.5

ncol

How wide the plot should be, Default: NULL


meerapatelmd/suzyBakeOven documentation built on March 30, 2022, 1:44 p.m.