R/heatmaps-sampleAnnotation.R
anno_sample.Rd
Use this as an argument to sampleAnnotation(), which itself is used by comp_heatmap() as sample_anno argument.
This creates a vector, which sampleAnnotation() interprets as a simple annotation, so then you set colours and legend parameters for each simple annotation as further arguments in sampleAnnotation.
anno_sample(var, fun = identity, data = NULL, samples = NULL)
vector of values
# see `?sampleAnnotation()`