Skip to contents

Display colors from bivariate color function

Usage

display_colorRamp2D(
  col_fun,
  pretty.n = 12,
  xlab = "",
  ylab = "",
  main = "",
  verbose = FALSE,
  ...
)

Arguments

col_fun

function output from colorRamp2D().

pretty.n

numeric passed to pretty() to determine the y-axis and x-axis label breaks, respectively, or NULL to use breaks encoded in col_fun.

xlab, ylab, main

character strings passed to title().

verbose

logical whether to print verbose output.

...

additional arguments are passed to title().

Value

matrix with character R colors, invisibly.

Details

This function provides a very rudimentary method for displaying a bivariate 2-D color matrix out from colorRamp2D().

Todo

  • Use optional attributes with pre-determined breaks and labels, useful when cutoffs (floors) were defined. In this case, pretty.n would likely be ignored, in favor of using label positions already in place.