Applies the formatter to each sample column in turn and adds the next formatting rule to the DT object for all samples

barplotformatter(dt, vars, df)

Arguments

dt

a DTdatatable object

vars

a character vector of variables

df

initial object