
Create annotation bars
PlotAnnotationBars.Rd
Make a list of coloured annotation bars for each sample provided and their corresponding categories
Usage
PlotAnnotationBars(ann_df, cols, colors = LETTERS[1:length(cols)], order)
Arguments
- ann_df
A dataframe. Must contain at least
sample_id
and all columns incols
- cols
Character vector. Names of categorical columns to include as annotations, i.e. one column = one annotation bar
- colors
Character vector. Letters A-H indicating the viridis color option to be used for each column. Must have same length as
cols
Example ifcols
lists two columns:
colors <- c('A', 'B')- order
vector containing all values of sample_id in desired order, controls order of tiles.