... | ... |
@@ -8,7 +8,7 @@ plotBarcodeRankScatter( |
8 | 8 |
inSCE, |
9 | 9 |
sample = NULL, |
10 | 10 |
defaultTheme = TRUE, |
11 |
- dotSize = 0.5, |
|
11 |
+ dotSize = 0.1, |
|
12 | 12 |
title = NULL, |
13 | 13 |
titleSize = 18, |
14 | 14 |
xlab = NULL, |
... | ... |
@@ -32,7 +32,7 @@ sample each cell belongs to. Default \code{NULL}.} |
32 | 32 |
\item{defaultTheme}{Removes grid in plot and sets axis title size to |
33 | 33 |
\code{10} when \code{TRUE}. Default \code{TRUE}.} |
34 | 34 |
|
35 |
-\item{dotSize}{Size of dots. Default \code{0.5}.} |
|
35 |
+\item{dotSize}{Size of dots. Default \code{0.1}.} |
|
36 | 36 |
|
37 | 37 |
\item{title}{Title of plot. Default \code{NULL}.} |
38 | 38 |
|
... | ... |
@@ -24,39 +24,40 @@ plotBarcodeRankScatter( |
24 | 24 |
\arguments{ |
25 | 25 |
\item{inSCE}{Input \linkS4class{SingleCellExperiment} object with saved |
26 | 26 |
dimension reduction components or a variable with saved results from |
27 |
-\link{runBarcodeRankDrops}. Required.} |
|
27 |
+\code{\link{runBarcodeRankDrops}}. Required.} |
|
28 | 28 |
|
29 |
-\item{sample}{Character vector. Indicates which sample each cell belongs to. |
|
30 |
-Default NULL.} |
|
29 |
+\item{sample}{Character vector or colData variable name. Indicates which |
|
30 |
+sample each cell belongs to. Default \code{NULL}.} |
|
31 | 31 |
|
32 |
-\item{defaultTheme}{Removes grid in plot and sets axis title size to 10 |
|
33 |
-when TRUE. Default TRUE.} |
|
32 |
+\item{defaultTheme}{Removes grid in plot and sets axis title size to |
|
33 |
+\code{10} when \code{TRUE}. Default \code{TRUE}.} |
|
34 | 34 |
|
35 |
-\item{dotSize}{Size of dots. Default 0.5.} |
|
35 |
+\item{dotSize}{Size of dots. Default \code{0.5}.} |
|
36 | 36 |
|
37 |
-\item{title}{Title of plot. Default NULL.} |
|
37 |
+\item{title}{Title of plot. Default \code{NULL}.} |
|
38 | 38 |
|
39 |
-\item{titleSize}{Size of title of plot. Default 18.} |
|
39 |
+\item{titleSize}{Size of title of plot. Default \code{18}.} |
|
40 | 40 |
|
41 |
-\item{xlab}{Character vector. Label for x-axis. Default NULL.} |
|
41 |
+\item{xlab}{Character vector. Label for x-axis. Default \code{NULL}.} |
|
42 | 42 |
|
43 |
-\item{ylab}{Character vector. Label for y-axis. Default NULL.} |
|
43 |
+\item{ylab}{Character vector. Label for y-axis. Default \code{NULL}.} |
|
44 | 44 |
|
45 |
-\item{axisSize}{Size of x/y-axis ticks. Default 12.} |
|
45 |
+\item{axisSize}{Size of x/y-axis ticks. Default \code{12}.} |
|
46 | 46 |
|
47 |
-\item{axisLabelSize}{Size of x/y-axis labels. Default 15.} |
|
47 |
+\item{axisLabelSize}{Size of x/y-axis labels. Default \code{15}.} |
|
48 | 48 |
|
49 |
-\item{legendSize}{size of legend. Default 10.} |
|
49 |
+\item{legendSize}{size of legend. Default \code{10}.} |
|
50 | 50 |
|
51 |
-\item{combinePlot}{Boolean. If multiple plots are generated (multiple |
|
52 |
-samples, etc.), will combined plots using `cowplot::plot_grid`.} |
|
51 |
+\item{combinePlot}{Must be either \code{"all"}, \code{"sample"}, or |
|
52 |
+\code{"none"}. \code{"all"} will combine all plots into a single .ggplot |
|
53 |
+object, while \code{"sample"} will output a list of plots separated by |
|
54 |
+sample. Default \code{"all"}.} |
|
53 | 55 |
|
54 |
-\item{sampleRelHeights}{If there are multiple samples and combining by "all", |
|
55 |
-the relative heights for each plot.} |
|
56 |
+\item{sampleRelHeights}{If there are multiple samples and combining by |
|
57 |
+\code{"all"}, the relative heights for each plot. Default \code{1}.} |
|
56 | 58 |
|
57 |
-\item{sampleRelWidths}{If there are multiple samples and combining by "all", |
|
58 |
-the relative widths for each plot. |
|
59 |
-Default TRUE.} |
|
59 |
+\item{sampleRelWidths}{If there are multiple samples and combining by |
|
60 |
+\code{"all"}, the relative widths for each plot. Default \code{1}.} |
|
60 | 61 |
} |
61 | 62 |
\value{ |
62 | 63 |
a ggplot object of the scatter plot. |
... | ... |
@@ -67,7 +68,11 @@ A plotting function which visualizes outputs from the |
67 | 68 |
object via scatterplot. |
68 | 69 |
} |
69 | 70 |
\examples{ |
70 |
-data(scExample, package="singleCellTK") |
|
71 |
-sce <- runBarcodeRankDrops(inSCE=sce) |
|
72 |
-plotBarcodeRankScatter(inSCE=sce) |
|
71 |
+data(scExample, package = "singleCellTK") |
|
72 |
+sce <- runBarcodeRankDrops(inSCE = sce) |
|
73 |
+plotBarcodeRankScatter(inSCE = sce) |
|
74 |
+} |
|
75 |
+\seealso{ |
|
76 |
+\code{\link{plotBarcodeRankDropsResults}}, |
|
77 |
+\code{\link{runBarcodeRankDrops}} |
|
73 | 78 |
} |
... | ... |
@@ -8,7 +8,7 @@ plotBarcodeRankScatter( |
8 | 8 |
inSCE, |
9 | 9 |
sample = NULL, |
10 | 10 |
defaultTheme = TRUE, |
11 |
- dotSize = 1, |
|
11 |
+ dotSize = 0.5, |
|
12 | 12 |
title = NULL, |
13 | 13 |
titleSize = 18, |
14 | 14 |
xlab = NULL, |
... | ... |
@@ -32,7 +32,7 @@ Default NULL.} |
32 | 32 |
\item{defaultTheme}{Removes grid in plot and sets axis title size to 10 |
33 | 33 |
when TRUE. Default TRUE.} |
34 | 34 |
|
35 |
-\item{dotSize}{Size of dots. Default 1.} |
|
35 |
+\item{dotSize}{Size of dots. Default 0.5.} |
|
36 | 36 |
|
37 | 37 |
\item{title}{Title of plot. Default NULL.} |
38 | 38 |
|
... | ... |
@@ -58,6 +58,9 @@ the relative heights for each plot.} |
58 | 58 |
the relative widths for each plot. |
59 | 59 |
Default TRUE.} |
60 | 60 |
} |
61 |
+\value{ |
|
62 |
+a ggplot object of the scatter plot. |
|
63 |
+} |
|
61 | 64 |
\description{ |
62 | 65 |
A plotting function which visualizes outputs from the |
63 | 66 |
runBarcodeRankDrops function stored in the colData slot of the SingleCellExperiment |
... | ... |
@@ -16,7 +16,9 @@ plotBarcodeRankScatter( |
16 | 16 |
axisSize = 12, |
17 | 17 |
axisLabelSize = 15, |
18 | 18 |
legendSize = 10, |
19 |
- combinePlot = TRUE |
|
19 |
+ combinePlot = NULL, |
|
20 |
+ sampleRelHeights = 1, |
|
21 |
+ sampleRelWidths = 1 |
|
20 | 22 |
) |
21 | 23 |
} |
22 | 24 |
\arguments{ |
... | ... |
@@ -47,7 +49,13 @@ when TRUE. Default TRUE.} |
47 | 49 |
\item{legendSize}{size of legend. Default 10.} |
48 | 50 |
|
49 | 51 |
\item{combinePlot}{Boolean. If multiple plots are generated (multiple |
50 |
-samples, etc.), will combined plots using `cowplot::plot_grid`. |
|
52 |
+samples, etc.), will combined plots using `cowplot::plot_grid`.} |
|
53 |
+ |
|
54 |
+\item{sampleRelHeights}{If there are multiple samples and combining by "all", |
|
55 |
+the relative heights for each plot.} |
|
56 |
+ |
|
57 |
+\item{sampleRelWidths}{If there are multiple samples and combining by "all", |
|
58 |
+the relative widths for each plot. |
|
51 | 59 |
Default TRUE.} |
52 | 60 |
} |
53 | 61 |
\description{ |
... | ... |
@@ -15,7 +15,8 @@ plotBarcodeRankScatter( |
15 | 15 |
ylab = NULL, |
16 | 16 |
axisSize = 12, |
17 | 17 |
axisLabelSize = 15, |
18 |
- legendSize = 10 |
|
18 |
+ legendSize = 10, |
|
19 |
+ combinePlot = TRUE |
|
19 | 20 |
) |
20 | 21 |
} |
21 | 22 |
\arguments{ |
... | ... |
@@ -44,6 +45,10 @@ when TRUE. Default TRUE.} |
44 | 45 |
\item{axisLabelSize}{Size of x/y-axis labels. Default 15.} |
45 | 46 |
|
46 | 47 |
\item{legendSize}{size of legend. Default 10.} |
48 |
+ |
|
49 |
+\item{combinePlot}{Boolean. If multiple plots are generated (multiple |
|
50 |
+samples, etc.), will combined plots using `cowplot::plot_grid`. |
|
51 |
+Default TRUE.} |
|
47 | 52 |
} |
48 | 53 |
\description{ |
49 | 54 |
A plotting function which visualizes outputs from the |
... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
% Please edit documentation in R/ggPlotting.R |
3 | 3 |
\name{plotBarcodeRankScatter} |
4 | 4 |
\alias{plotBarcodeRankScatter} |
5 |
-\title{Plots for runEmptyDrops outputs.} |
|
5 |
+\title{Plots for runBarcodeRankDrops outputs.} |
|
6 | 6 |
\usage{ |
7 | 7 |
plotBarcodeRankScatter( |
8 | 8 |
inSCE, |
... | ... |
@@ -21,7 +21,7 @@ plotBarcodeRankScatter( |
21 | 21 |
\arguments{ |
22 | 22 |
\item{inSCE}{Input \linkS4class{SingleCellExperiment} object with saved |
23 | 23 |
dimension reduction components or a variable with saved results from |
24 |
-\link{runScrublet}. Required.} |
|
24 |
+\link{runBarcodeRankDrops}. Required.} |
|
25 | 25 |
|
26 | 26 |
\item{sample}{Character vector. Indicates which sample each cell belongs to. |
27 | 27 |
Default NULL.} |
... | ... |
@@ -47,7 +47,7 @@ when TRUE. Default TRUE.} |
47 | 47 |
} |
48 | 48 |
\description{ |
49 | 49 |
A plotting function which visualizes outputs from the |
50 |
- runEmptyDrops function stored in the colData slot of the SingleCellExperiment |
|
50 |
+ runBarcodeRankDrops function stored in the colData slot of the SingleCellExperiment |
|
51 | 51 |
object via scatterplot. |
52 | 52 |
} |
53 | 53 |
\examples{ |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,57 @@ |
1 |
+% Generated by roxygen2: do not edit by hand |
|
2 |
+% Please edit documentation in R/ggPlotting.R |
|
3 |
+\name{plotBarcodeRankScatter} |
|
4 |
+\alias{plotBarcodeRankScatter} |
|
5 |
+\title{Plots for runEmptyDrops outputs.} |
|
6 |
+\usage{ |
|
7 |
+plotBarcodeRankScatter( |
|
8 |
+ inSCE, |
|
9 |
+ sample = NULL, |
|
10 |
+ defaultTheme = TRUE, |
|
11 |
+ dotSize = 1, |
|
12 |
+ title = NULL, |
|
13 |
+ titleSize = 18, |
|
14 |
+ xlab = NULL, |
|
15 |
+ ylab = NULL, |
|
16 |
+ axisSize = 12, |
|
17 |
+ axisLabelSize = 15, |
|
18 |
+ legendSize = 10 |
|
19 |
+) |
|
20 |
+} |
|
21 |
+\arguments{ |
|
22 |
+\item{inSCE}{Input \linkS4class{SingleCellExperiment} object with saved |
|
23 |
+dimension reduction components or a variable with saved results from |
|
24 |
+\link{runScrublet}. Required.} |
|
25 |
+ |
|
26 |
+\item{sample}{Character vector. Indicates which sample each cell belongs to. |
|
27 |
+Default NULL.} |
|
28 |
+ |
|
29 |
+\item{defaultTheme}{Removes grid in plot and sets axis title size to 10 |
|
30 |
+when TRUE. Default TRUE.} |
|
31 |
+ |
|
32 |
+\item{dotSize}{Size of dots. Default 1.} |
|
33 |
+ |
|
34 |
+\item{title}{Title of plot. Default NULL.} |
|
35 |
+ |
|
36 |
+\item{titleSize}{Size of title of plot. Default 18.} |
|
37 |
+ |
|
38 |
+\item{xlab}{Character vector. Label for x-axis. Default NULL.} |
|
39 |
+ |
|
40 |
+\item{ylab}{Character vector. Label for y-axis. Default NULL.} |
|
41 |
+ |
|
42 |
+\item{axisSize}{Size of x/y-axis ticks. Default 12.} |
|
43 |
+ |
|
44 |
+\item{axisLabelSize}{Size of x/y-axis labels. Default 15.} |
|
45 |
+ |
|
46 |
+\item{legendSize}{size of legend. Default 10.} |
|
47 |
+} |
|
48 |
+\description{ |
|
49 |
+A plotting function which visualizes outputs from the |
|
50 |
+ runEmptyDrops function stored in the colData slot of the SingleCellExperiment |
|
51 |
+ object via scatterplot. |
|
52 |
+} |
|
53 |
+\examples{ |
|
54 |
+data(scExample, package="singleCellTK") |
|
55 |
+sce <- runBarcodeRankDrops(inSCE=sce) |
|
56 |
+plotBarcodeRankScatter(inSCE=sce) |
|
57 |
+} |