gtex_colors {flashier} | R Documentation |
Colors for plotting GTEx data
Description
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.
Format
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.
Source
<https://github.com/stephenslab/gtexresults/blob/master/data/GTExColors.txt>
References
Wei Wang and Matthew Stephens (2021). "Empirical Bayes matrix factorization." Journal of Machine Learning Research 22, 1–40.
Examples
fl <- flash(gtex, greedy_Kmax = 4)
plot(fl, incl_scree = FALSE, pm_colors = gtex_colors)
[Package flashier version 1.0.7 Index]