man/plotBcdsResults.Rd
bc6984ea
 % Generated by roxygen2: do not edit by hand
 % Please edit documentation in R/ggPerQCWrapper.R
 \name{plotBcdsResults}
 \alias{plotBcdsResults}
 \title{Plots for runBcds outputs.}
 \usage{
 plotBcdsResults(
   inSCE,
   sample = NULL,
   shape = NULL,
75f463fa
   groupBy = NULL,
   combinePlot = "all",
bc6984ea
   violin = TRUE,
   boxplot = FALSE,
   dots = TRUE,
94e4e060
   reducedDimName = "UMAP",
bc6984ea
   xlab = NULL,
   ylab = NULL,
   dim1 = NULL,
   dim2 = NULL,
   bin = NULL,
   binLabel = NULL,
   defaultTheme = TRUE,
94e4e060
   dotSize = 0.5,
0b25ffe0
   summary = "median",
   summaryTextSize = 3,
dea0dc42
   transparency = 1,
219adea9
   baseSize = 15,
0b25ffe0
   titleSize = NULL,
   axisLabelSize = NULL,
   axisSize = NULL,
   legendSize = NULL,
   legendTitleSize = NULL,
   relHeights = 1,
746d0843
   relWidths = c(1, 1, 1),
b01005c6
   plotNCols = NULL,
   plotNRows = NULL,
0b25ffe0
   labelSamples = TRUE,
746d0843
   samplePerColumn = TRUE,
   sampleRelHeights = 1,
   sampleRelWidths = 1
bc6984ea
 )
 }
 \arguments{
3fcae1c4
 \item{inSCE}{Input \linkS4class{SingleCellExperiment} object with saved
 dimension reduction components or a variable with saved results from
3f814b57
 \code{\link{runBcds}}. Required.}
bc6984ea
 
3f814b57
 \item{sample}{Character vector or colData variable name. Indicates which 
 sample each cell belongs to. Default \code{NULL}.}
bc6984ea
 
3f814b57
 \item{shape}{If provided, add shapes based on the value. Default \code{NULL}.}
bc6984ea
 
75f463fa
 \item{groupBy}{Groupings for each numeric value. A user may input a vector
3f814b57
 equal length to the number of the samples in \code{inSCE}, or can be 
 retrieved from the colData slot. Default \code{NULL}.}
bc6984ea
 
3f814b57
 \item{combinePlot}{Must be either \code{"all"}, \code{"sample"}, or 
 \code{"none"}. \code{"all"} will combine all plots into a single .ggplot 
 object, while \code{"sample"} will output a list of plots separated by 
 sample. Default \code{"all"}.}
d23bcd51
 
3f814b57
 \item{violin}{Boolean. If \code{TRUE}, will plot the violin plot. Default 
 \code{TRUE}.}
bc6984ea
 
3f814b57
 \item{boxplot}{Boolean. If \code{TRUE}, will plot boxplots for each violin 
 plot. Default \code{TRUE}.}
bc6984ea
 
3f814b57
 \item{dots}{Boolean. If \code{TRUE}, will plot dots for each violin plot.
 Default \code{TRUE}.}
bc6984ea
 
3f814b57
 \item{reducedDimName}{Saved dimension reduction name in \code{inSCE}. 
 Default \code{"UMAP"}.}
bc6984ea
 
3f814b57
 \item{xlab}{Character vector. Label for x-axis. Default \code{NULL}.}
bc6984ea
 
3f814b57
 \item{ylab}{Character vector. Label for y-axis. Default \code{NULL}.}
bc6984ea
 
3f814b57
 \item{dim1}{1st dimension to be used for plotting. Can either be a string 
 which specifies the name of the dimension to be plotted from reducedDims, or 
 a numeric value which specifies the index of the dimension to be plotted. 
 Default is \code{NULL}.}
bc6984ea
 
3f814b57
 \item{dim2}{2nd dimension to be used for plotting. Similar to \code{dim1}. 
 Default is \code{NULL}.}
bc6984ea
 
3f814b57
 \item{bin}{Numeric vector. If single value, will divide the numeric values 
 into \code{bin} groups. If more than one value, will bin numeric values using
 values as a cut point. Default \code{NULL}.}
bc6984ea
 
3f814b57
 \item{binLabel}{Character vector. Labels for the bins created by \code{bin}.
 Default \code{NULL}.}
bc6984ea
 
3f814b57
 \item{defaultTheme}{Removes grid in plot and sets axis title size to 
 \code{10} when \code{TRUE}. Default \code{TRUE}.}
dea0dc42
 
3f814b57
 \item{dotSize}{Size of dots. Default \code{0.5}.}
bc6984ea
 
219adea9
 \item{summary}{Adds a summary statistic, as well as a crossbar to the
3f814b57
 violin plot. Options are \code{"mean"} or \code{"median"}. Default 
 \code{NULL}.}
219adea9
 
 \item{summaryTextSize}{The text size of the summary statistic displayed
3f814b57
 above the violin plot. Default \code{3}.}
219adea9
 
3f814b57
 \item{transparency}{Transparency of the dots, values will be 0-1. Default 
 \code{1}.}
bc6984ea
 
3f814b57
 \item{baseSize}{The base font size for all text. Default \code{12}.
 Can be overwritten by \code{titleSize}, \code{axisSize}, and 
 \code{axisLabelSize}, \code{legendSize}, \code{legendTitleSize}.}
219adea9
 
3f814b57
 \item{titleSize}{Size of title of plot. Default \code{NULL}.}
dea0dc42
 
3f814b57
 \item{axisLabelSize}{Size of x/y-axis labels. Default \code{NULL}.}
dea0dc42
 
3f814b57
 \item{axisSize}{Size of x/y-axis ticks. Default \code{NULL}.}
dea0dc42
 
3f814b57
 \item{legendSize}{size of legend. Default \code{NULL}.}
bc6984ea
 
3f814b57
 \item{legendTitleSize}{size of legend title. Default \code{NULL}.}
746d0843
 
3f814b57
 \item{relHeights}{Relative heights of plots when combine is set. Default 
 \code{1}.}
746d0843
 
3f814b57
 \item{relWidths}{Relative widths of plots when combine is set. Default 
 \code{c(1, 1, 1)}.}
746d0843
 
3f814b57
 \item{plotNCols}{Number of columns when plots are combined in a grid. Default 
 \code{NULL}.}
b01005c6
 
3f814b57
 \item{plotNRows}{Number of rows when plots are combined in a grid. Default 
 \code{NULL}.}
b01005c6
 
3f814b57
 \item{labelSamples}{Will label sample name in title of plot if TRUE. Default 
 \code{TRUE}.}
75f463fa
 
3f814b57
 \item{samplePerColumn}{If \code{TRUE}, when there are multiple samples and 
 combining by \code{"all"}, the output .ggplot will have plots from each 
 sample on a single column. Default \code{TRUE}.}
746d0843
 
3f814b57
 \item{sampleRelHeights}{If there are multiple samples and combining by 
 \code{"all"}, the relative heights for each plot. Default \code{1}.}
746d0843
 
3f814b57
 \item{sampleRelWidths}{If there are multiple samples and combining by 
 \code{"all"}, the relative widths for each plot. Default \code{1}.}
bc6984ea
 }
09571895
 \value{
 list of .ggplot objects
 }
bc6984ea
 \description{
 A wrapper function which visualizes outputs from the
3f814b57
 \code{\link{runBcds}} function stored in the colData slot of the
 \linkS4class{SingleCellExperiment} object via various plots.
bc6984ea
 }
 \examples{
dea0dc42
 data(scExample, package="singleCellTK")
0851efbf
 sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'")
c35af4eb
 sce <- runQuickUMAP(sce)
bc6984ea
 sce <- runBcds(sce)
dea0dc42
 plotBcdsResults(inSCE=sce, reducedDimName="UMAP")
bc6984ea
 }
3f814b57
 \seealso{
 \code{\link{runBcds}}
 }