plotHeatmapColorScale: Plot Heatmap Color Scale for both caOmicsV bioMatrix and...

Description Usage Arguments Value Author(s) Examples

View source: R/caOmicsV.R

Description

Draw heatmap color scale for legends of bioMatrix plot and bioNetCircos plot. Graphic device must be initialized.

Usage

1
2
    plotHeatmapColorScale(coorX, coorY, colorType="BlueWhiteRed", 
        scaleWidth, scaleHeight, minValue, maxValue, direction="h")

Arguments

coorX

numeric, x coordinates for the top left location of color scale

coorY

numeric, y coordinates for the top left location of color scale

scaleWidth

non-negative numeric, width of color scale

scaleHeight

non-negative numeric, height of color scale

colorType

character vector, one of "BlueWhiteRed", "GreenWhiteRed", "GreenYellowRed", "GreenBlackRed", "YellowToRed", and "BlackOnly"

minValue

numeric, the smallest value associated with the lowest coluor

maxValue

numeric, the biggest value associated with the highest coluor

direction

One character, either "h" for horizontal or "v" for vertical

Value

None

Author(s)

Henry Zhang

Examples

1
2
3
4
5
6
    plot.new()
    plot.window(xlim=c(1,5), ylim=c(1,5))
    axis(1)
    axis(2)
    plotHeatmapColorScale(coorX=2, coorY=4, colorType="BlueWhiteRed", 
        scaleWidth=2, scaleHeight=0.5, minValue=-3, maxValue=3)

Example output

Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

Loading required package: bc3net
Loading required package: c3net
Loading required package: infotheo
Loading required package: Matrix
Loading required package: lattice

caOmicsV documentation built on Nov. 8, 2020, 8:23 p.m.