xmap.col: Generate a colour integer for the xmapBridge

Description Usage Arguments Details Author(s) See Also Examples

View source: R/xmapbridge.R

Description

Convert an R colour into the form 0xAARRGGBB as used by the xmapBridge

Usage

1
   xmap.col(col,alpha)

Arguments

col

The R colour to convert

alpha

Change the colour's alpha value to the one specified

Details

Takes one or more hex strings, possibly with an alpha value, as used by R and converts them to an integer of the form 0xAARRGGBB to be used by the xmapBridge. If alpha is specified, then change the colours' alpha values to this, otherwise leave them as they were.

Author(s)

Crispin J Miller

See Also

xmap.plot
xmap.plot.new

Examples

1
2
  require( RColorBrewer )
  transparent.greens <- xmap.col( brewer.pal( 5, "Greens" ), alpha=0x22 )

xmapbridge documentation built on Nov. 1, 2018, 2:05 a.m.