Saturated rainbow for proportions

Usage

saturated_rainbow_pct(..., 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 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 ale_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.