gtex_colors | R Documentation |
A custom palette used by Wang and Stephens (2021) to plot an
empirical Bayes matrix factorization of data from the GTEx project
(of which the gtex
data in package flashier is a
subsample).
The palette is designed to link similar tissues together visually. For
example, brain tissues all have the same color (yellow); arterial tissues
are shades of pink or red; etc.
gtex_colors
is a named vector of length 44, with names corresponding
to tissues (columns) in the gtex
dataset and values
giving hexadecimal color codes.
<https://github.com/stephenslab/gtexresults/blob/master/data/GTExColors.txt>
Wei Wang and Matthew Stephens (2021). "Empirical Bayes matrix factorization." Journal of Machine Learning Research 22, 1–40.
fl <- flash(gtex, greedy_Kmax = 4)
plot(fl, incl_scree = FALSE, pm_colors = gtex_colors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.