colorScale: colorScale

Description Usage Arguments Value

View source: R/Plotting.R

Description

This function generates a color scale

Usage

1
2
3
4
5
6
7
8
colorScale(
  x,
  color = c("royalblue", "firebrick2"),
  gama = 1,
  alpha = 1,
  scmax = 0,
  nacol = "grey80"
)

Arguments

x

Vector or matrix of numeric values

color

Vector of character strings indicating the colors for the scale. Up to three colors can be defined. While is used for the missing color

gama

Number indicating the gama transformation

alpha

Number between 0 and 1 indicating the transparency of the color (1 for absolute color)

scmax

Number indicating the maximum value for the scale

nacol

Character string indicating the color for missing values

Value

Vector of colors


fossbert/binilib documentation built on April 23, 2021, 10:31 p.m.