#' Plot UMI and Gene Correlation
#'
#' @name plotUMIsVsGenes
#' @family Quality Control Metrics
#' @author Michael Steinbaugh, Rory Kirchner
#'
#' @inheritParams general
#'
#' @return `ggplot`.
#'
#' @examples
#' # SingleCellExperiment ====
#' plotUMIsVsGenes(cellranger_small)
NULL
# Methods ======================================================================
#' @rdname plotUMIsVsGenes
#' @export
setMethod(
"plotUMIsVsGenes",
signature("SingleCellExperiment"),
function(
object,
interestingGroups,
trendline = FALSE,
color = scale_color_hue(),
trans = "log2",
title = "UMIs vs. genes"
) {
.plotQCScatterplot(
object = object,
interestingGroups = interestingGroups,
trendline = trendline,
xCol = "nUMI",
yCol = "nGene",
xTrans = trans,
yTrans = trans,
title = title
)
}
)
#' @rdname plotUMIsVsGenes
#' @export
setMethod(
"plotUMIsVsGenes",
signature("seurat"),
getMethod("plotUMIsVsGenes", "SingleCellExperiment")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.