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.
1 | saturated_rainbow_pct(..., na.value = "white", threshold = 0.4, scale = 1)
|
... |
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?) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.