This creates a density plot of the (log) counts distributions of the AnyHermesData object where each line on the plot corresponds to a sample.
draw_libsize_densities(object, log = TRUE)(AnyHermesData)
input.
(flag)
should the counts be log transformed (log2).
The ggplot object with the density plot.
result <- hermes_data
draw_libsize_densities(result)
draw_libsize_densities(result, log = FALSE)