addFreqBars {treekoR} | R Documentation |
a function to add the frequency bars for each cluster
addFreqBars( p, clusters, offset = 0.75, bar_length = 3, bar_width = 0.4, freq_labels = FALSE )
p |
a phylogenetic tree plot created from the ggtree() function |
clusters |
a vector representing the cell type or cluster of each cell (can be character or numeric) |
offset |
distance between the heatmap and frequency bars |
bar_length |
length of bar with max frequency |
bar_width |
width of each frequency bar |
freq_labels |
boolean indicated whether or not to show frequency bar labels |
an interactive ggplot graph object with frequency bars of clusters alongside heatmap of cluster median expression