Skip to contents
0.16.6 documentation

Complete canonical API text; task articles explain the workflows. Tutorials

Site guide · find your task

Set a track's fill or colour mapping

Usage

Code
scale_track_fill_gradientn(track, ..., colours, guide = NULL)

scale_track_fill_manual(track, ..., values)

scale_track_colour_gradientn(track, ..., colours, guide = NULL)

scale_track_colour_manual(track, ..., values)

Arguments

track

Track ID.

...

Standard ggplot2 scale arguments.

colours

Gradient colours.

guide

Optional standard guide for the fill/colour scale.

values

Manual category colours.

Value

A standard scale scoped to the named track's visual role.

Examples

Code
scale_track_fill_gradientn("gc", colours = c("navy", "white", "orange"))