Skip to contents

Decide whether to use scale_X_gradientn() or scale_X_manual(), and decides X. Given an object, returns the ggplot scale function that fits based on the geom and the input plotting variable

Usage

default_color_scale(x, geom, color.pal = NULL, limits = NULL, ...)

Arguments

x

An atomic

geom

What Ggplot2 geom to use

color.pal

A vector of color values

limits

Set the limits of the color scale (useful for comparing values across many samples)

...

Arguments pasted to scale_*_...() function

Scroll to top