maptocolors: maps numeric vector to color palette

Description Usage Arguments Examples

View source: R/maptocolors.R

Description

maps numeric vector to color palette

Usage

1
maptocolors(vec, col, num = 100, range = NULL)

Arguments

vec

numeric vector to map to color

col

color palette to which to be mapped

num

number of bins of colors

range

range of values to map

Examples

1
plot((1:10),col=maptocolors(vec=(1:10),colorRampPalette(c("blue","red"))),pch=19,cex=4)

Example output

Loading required package: zoo

Attaching package: 'zoo'

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

    as.Date, as.Date.numeric

Loading required package: biomaRt

Sushi documentation built on Nov. 8, 2020, 7:48 p.m.