View source: R/heatmaps-sampleAnnotation.R
anno_sample | R Documentation |
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)
var |
name of variable to use for annotation data |
fun |
function to transform variable |
data |
OPTIONAL phyloseq or psExtra, only set this to override use of same data as in heatmap |
samples |
OPTIONAL selection vector of sample names, only set this if providing data argument to override default |
vector of values
sampleAnnotation()
# see `?sampleAnnotation()`
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.