Add scale bar objects to a ggplot

ggplot_scale_bars(p, n_genes, n_samples, extent = 0.9)

Arguments

p

The plot to add scale bars to

n_genes

The number of genes in the plot

n_samples

The number of samples in the plot

extent

The amount of space in the plot row that each row of data uses.

Value

a ggplot2 object