Learn R Programming

eks (version 1.0.7)

scale_transparent: Change individual colours in discrete colour scale to transparent

Description

Change individual colours in discrete colour scale to transparent.

Usage

scale_transparent(x, ind=NULL)

Value

The output is the same colour scale, except that the colours at the indices enumerated by ind are changed to transparent.

Arguments

x

discrete colour scale

ind

index of colour scale to change to transparent. Default is median.

Examples

Run this code
## see ? tidy_kdde

Run the code above in your browser using DataLab