Plot the density of a some grouping
plot_group_density(obj, use_filtered = TRUE, units = "est_counts",
trans = "log", grouping = setdiff(colnames(obj$sample_to_covariates),
"sample"), offset = 1)
a sleuth
object
if TRUE, use filtered data. otherwise use all data
either 'est_counts' ('scaled_reads_per_base' for gene_mode) or 'tpm'
a string pointing to a function to use for the transformation.
a string from the columns of sample_to_covariates
in
the sleuth object for which to group and color by.
the offset so that transformations such as log don't compute -Inf. If NULL, then will not add an offset
a ggplot2
object