sign_format: Format Significance Values

Description Usage Arguments Value

View source: R/sign_format.R

Description

An internal function for generating colors associated with significance values in hypothesis testing.

Usage

1
2
3
4
5
6
sign_format(
  x,
  breaks = c(1, 0.1, 0.05, 0.01, 0.001, 0),
  values = c("#808080", "#ffa500", "#9acd32", "#008000", "#006400"),
  na_value = "#808080"
)

Arguments

x

A numeric vector with significance values

breaks

A numeric vector with values at which each color break occurs

values

A character vector of colors to use for each interval

na_value

A character vector of the color to use for NA values

Value

A vector


tonofshell/cowpoke documentation built on June 12, 2020, 8:43 a.m.