Saturated rainbow for counts

Usage

saturated_rainbow_cts(..., na.value = "white", threshold = 0.4, scale = 1)

Arguments

...
arguments passed to scale_fill_gradientn
na.value
the color to assign to missing taxa
threshold
the proportional limit where the high-range color appears
scale
the the maximum of the proportion (i.e. is it 0-1 scaled or 0-100?)

Description

Adapted from qiimer::saturated_rainbow, this provides a ggplot2 scale_fill_gradientn that adopts the conventions from that scale. Namely: The lowest-abundance taxa are in dark blue, empty taxa are white, and highly-abundant taxa (> threshold) are in red.