Learn R Programming

wrGraph (version 1.3.8)

.colorByPvalue: Colors based on p-Values

Description

This function helps defining color-gradient based on p-Values. This fuction requires package RColorBrewer being installed

Usage

.colorByPvalue(
  x,
  br = NULL,
  col = NULL,
  asIndex = FALSE,
  silent = FALSE,
  debug = FALSE,
  callFrom = NULL
)

Value

This function retruns a color-gradient based on p-Values

Arguments

x

(numeric) p-values (main input)

br

(numeric) custom breaks (used with cut)

col

custom colors (must be of length(br) -1)

asIndex

(logical) custom breaks (used with cut)

silent

(logical) suppress messages

debug

(logical) supplemental messages for debugging

callFrom

(character) allow easier tracking of messages produced

See Also

(for PCA) plotPCAw)

Examples

Run this code
.colorByPvalue((1:10)/10)

Run the code above in your browser using DataLab