... | ... |
@@ -4,7 +4,7 @@ |
4 | 4 |
\alias{plotClusterAbundance} |
5 | 5 |
\title{Plot the differential Abundance} |
6 | 6 |
\usage{ |
7 |
-plotClusterAbundance(inSCE, cluster, variable) |
|
7 |
+plotClusterAbundance(inSCE, cluster, variable, combinePlot = c("all", "none")) |
|
8 | 8 |
} |
9 | 9 |
\arguments{ |
10 | 10 |
\item{inSCE}{A \code{\link[SingleCellExperiment]{SingleCellExperiment}} |
... | ... |
@@ -15,9 +15,15 @@ cluster label in \code{\link{colData}}.} |
15 | 15 |
|
16 | 16 |
\item{variable}{A single \code{character}, specifying the name to store the |
17 | 17 |
phenotype labels in \code{\link{colData}}.} |
18 |
+ |
|
19 |
+\item{combinePlot}{Must be either "all" or "none". "all" will combine all |
|
20 |
+plots into a single \code{\link[ggplot2]{ggplot}} object. Default |
|
21 |
+\code{"all"}.} |
|
18 | 22 |
} |
19 | 23 |
\value{ |
20 |
-A \code{list} with 4 \code{ggplot} objects. |
|
24 |
+When \code{combinePlot = "none"}, a \code{list} with 4 |
|
25 |
+\code{\link[ggplot2]{ggplot}} objects; when \code{combinePlot = "all"}, a |
|
26 |
+single \code{\link[ggplot2]{ggplot}} object with for subplots. |
|
21 | 27 |
} |
22 | 28 |
\description{ |
23 | 29 |
Plot the differential Abundance |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,35 @@ |
1 |
+% Generated by roxygen2: do not edit by hand |
|
2 |
+% Please edit documentation in R/abundance.R |
|
3 |
+\name{plotClusterAbundance} |
|
4 |
+\alias{plotClusterAbundance} |
|
5 |
+\title{Plot the differential Abundance} |
|
6 |
+\usage{ |
|
7 |
+plotClusterAbundance(inSCE, cluster, variable) |
|
8 |
+} |
|
9 |
+\arguments{ |
|
10 |
+\item{inSCE}{A \code{\link[SingleCellExperiment]{SingleCellExperiment}} |
|
11 |
+object.} |
|
12 |
+ |
|
13 |
+\item{cluster}{A single \code{character}, specifying the name to store the |
|
14 |
+cluster label in \code{\link{colData}}.} |
|
15 |
+ |
|
16 |
+\item{variable}{A single \code{character}, specifying the name to store the |
|
17 |
+phenotype labels in \code{\link{colData}}.} |
|
18 |
+} |
|
19 |
+\value{ |
|
20 |
+A \code{list} with 4 \code{ggplot} objects. |
|
21 |
+} |
|
22 |
+\description{ |
|
23 |
+Plot the differential Abundance |
|
24 |
+} |
|
25 |
+\details{ |
|
26 |
+This function will visualize the differential abundance in two given |
|
27 |
+variables, by making bar plots that presents the cell counting and fraction |
|
28 |
+in different cases. |
|
29 |
+} |
|
30 |
+\examples{ |
|
31 |
+data("mouseBrainSubsetSCE", package = "singleCellTK") |
|
32 |
+plotClusterAbundance(inSCE = mouseBrainSubsetSCE, |
|
33 |
+ cluster = "tissue", |
|
34 |
+ variable = "level1class") |
|
35 |
+} |