Build data.frames for maximum value positions in plot space

build_max_dfs(n_stats, width_stat = "samples", max_vals, max_width)

Arguments

n_stats

count statistics made by get_n_stats()

width_stat

The count used to determine x-position. In sample plots, use "samples". in group plots, use "groups".

max_vals

maximum values per gene generated by max_gene_vals()

max_width

the percentage of the plot that the max values should occupy.

Value

a list with 3 data.frames: labels with label positions and values; header, with header position and label; width with the width in plot space.