Plot Count Density

plotCountDensity(object, ...)

# S4 method for bcbioRNASeq
plotCountDensity(object, interestingGroups,
  normalized = "tmm", style = "solid",
  color = scale_color_viridis(discrete = TRUE),
  fill = scale_fill_viridis(discrete = TRUE))

# S4 method for data.frame
plotCountDensity(object,
  interestingGroups = "sampleName", style = "solid",
  color = scale_color_viridis(discrete = TRUE),
  fill = scale_fill_viridis(discrete = TRUE))

Arguments

object

Object.

...

Additional arguments (for the S4 generic definition).

interestingGroups

Category to use to group samples. In the plotting functions, this will define color and shape, where applicable. If unset, this is automatically determined by the metadata set inside the bcbioRNASeq object. When set to NULL, this will default to sampleName.

normalized

Count normalization method. See counts() documentation for more information.

style

Desired plot style (line or solid).

color

Desired ggplot color scale. Defaults to viridis::scale_color_viridis(). Must supply discrete values. When set to NULL, the default ggplot2 color palette will be used. If manual color definitions are desired, we recommend using ggplot2::scale_color_manual().

fill

Desired ggplot fill scale. Defaults to viridis::scale_fill_viridis(). Must supply discrete values. When set to NULL, the default ggplot2 color palette will be used. If manual color definitions are desired, we recommend using ggplot2::scale_fill_manual().

Value

ggplot.

See also

Other Quality Control Plots: plot53Bias, plotCountsPerGene, plotExonicMappingRate, plotGenderMarkers, plotGeneSaturation, plotGenesDetected, plotGene, plotIntronicMappingRate, plotMappedReads, plotMappingRate, plotRRNAMappingRate, plotTotalReads

Examples

plotCountDensity(bcb)
# NOT RUN { plotCountDensity( bcb, interestingGroups = "group", fill = NULL) # }
# data.frame
# NOT RUN { meltLog10(bcb, normalized = "tmm") %>% plotCountDensity() # }