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)
name of variable to use for annotation data
function to transform variable var
OPTIONAL phyloseq or psExtra, only set this to override use of same data as in heatmap
OPTIONAL selection vector of sample names, only set this if providing data argument to override default
vector of values
# see `?sampleAnnotation()`