... | ... |
@@ -18,9 +18,9 @@ pcaplot3d( |
18 | 18 |
) |
19 | 19 |
} |
20 | 20 |
\arguments{ |
21 |
-\item{x}{A \code{\link[=DESeqTransform]{DESeqTransform()}} object, with data in \code{assay(x)}, |
|
22 |
-produced for example by either \code{\link[=rlog]{rlog()}} or |
|
23 |
-\code{\link[=varianceStabilizingTransformation]{varianceStabilizingTransformation()}}} |
|
21 |
+\item{x}{A \code{\link[DESeq2:DESeqTransform]{DESeq2::DESeqTransform()}} object, with data in \code{assay(x)}, |
|
22 |
+produced for example by either \code{\link[DESeq2:rlog]{DESeq2::rlog()}} or |
|
23 |
+\code{\link[DESeq2:varianceStabilizingTransformation]{DESeq2::varianceStabilizingTransformation()}}} |
|
24 | 24 |
|
25 | 25 |
\item{intgroup}{Interesting groups: a character vector of |
26 | 26 |
names in \code{colData(x)} to use for grouping} |
... | ... |
@@ -18,9 +18,9 @@ pcaplot3d( |
18 | 18 |
) |
19 | 19 |
} |
20 | 20 |
\arguments{ |
21 |
-\item{x}{A \code{\link{DESeqTransform}} object, with data in \code{assay(x)}, |
|
22 |
-produced for example by either \code{\link{rlog}} or |
|
23 |
-\code{\link{varianceStabilizingTransformation}}} |
|
21 |
+\item{x}{A \code{\link[=DESeqTransform]{DESeqTransform()}} object, with data in \code{assay(x)}, |
|
22 |
+produced for example by either \code{\link[=rlog]{rlog()}} or |
|
23 |
+\code{\link[=varianceStabilizingTransformation]{varianceStabilizingTransformation()}}} |
|
24 | 24 |
|
25 | 25 |
\item{intgroup}{Interesting groups: a character vector of |
26 | 26 |
names in \code{colData(x)} to use for grouping} |
... | ... |
@@ -50,7 +50,7 @@ A html-based visualization of the 3d PCA plot |
50 | 50 |
Plots the results of PCA on a 3-dimensional space, interactively |
51 | 51 |
} |
52 | 52 |
\examples{ |
53 |
-dds <- makeExampleDESeqDataSet_multifac(betaSD_condition = 3,betaSD_tissue = 1) |
|
53 |
+dds <- makeExampleDESeqDataSet_multifac(betaSD_condition = 3, betaSD_tissue = 1) |
|
54 | 54 |
rlt <- DESeq2::rlogTransformation(dds) |
55 |
-pcaplot3d(rlt, ntop=200) |
|
55 |
+pcaplot3d(rlt, ntop = 200) |
|
56 | 56 |
} |
... | ... |
@@ -4,9 +4,18 @@ |
4 | 4 |
\alias{pcaplot3d} |
5 | 5 |
\title{Sample PCA plot for transformed data} |
6 | 6 |
\usage{ |
7 |
-pcaplot3d(x, intgroup = "condition", ntop = 500, returnData = FALSE, |
|
8 |
- title = NULL, pcX = 1, pcY = 2, pcZ = 3, text_labels = TRUE, |
|
9 |
- point_size = 3) |
|
7 |
+pcaplot3d( |
|
8 |
+ x, |
|
9 |
+ intgroup = "condition", |
|
10 |
+ ntop = 500, |
|
11 |
+ returnData = FALSE, |
|
12 |
+ title = NULL, |
|
13 |
+ pcX = 1, |
|
14 |
+ pcY = 2, |
|
15 |
+ pcZ = 3, |
|
16 |
+ text_labels = TRUE, |
|
17 |
+ point_size = 3 |
|
18 |
+) |
|
10 | 19 |
} |
11 | 20 |
\arguments{ |
12 | 21 |
\item{x}{A \code{\link{DESeqTransform}} object, with data in \code{assay(x)}, |
... | ... |
@@ -13,6 +13,9 @@ pcaplot3d(x, intgroup = "condition", ntop = 500, returnData = FALSE, |
13 | 13 |
produced for example by either \code{\link{rlog}} or |
14 | 14 |
\code{\link{varianceStabilizingTransformation}}} |
15 | 15 |
|
16 |
+\item{intgroup}{Interesting groups: a character vector of |
|
17 |
+names in \code{colData(x)} to use for grouping} |
|
18 |
+ |
|
16 | 19 |
\item{ntop}{Number of top genes to use for principal components, |
17 | 20 |
selected by highest row variance} |
18 | 21 |
|
... | ... |
@@ -30,11 +33,16 @@ selected principal components and intgroup covariates for custom plotting} |
30 | 33 |
\item{text_labels}{Logical, whether to display the labels with the sample identifiers} |
31 | 34 |
|
32 | 35 |
\item{point_size}{Integer, the size of the points for the samples} |
33 |
- |
|
34 |
-\item{Interesting}{groups: a character vector of |
|
35 |
-names in \code{colData(x)} to use for grouping} |
|
36 |
+} |
|
37 |
+\value{ |
|
38 |
+A html-based visualization of the 3d PCA plot |
|
36 | 39 |
} |
37 | 40 |
\description{ |
38 | 41 |
Plots the results of PCA on a 3-dimensional space, interactively |
39 | 42 |
} |
43 |
+\examples{ |
|
44 |
+dds <- makeExampleDESeqDataSet_multifac(betaSD_condition = 3,betaSD_tissue = 1) |
|
45 |
+rlt <- DESeq2::rlogTransformation(dds) |
|
46 |
+pcaplot3d(rlt, ntop=200) |
|
47 |
+} |
|
40 | 48 |
|
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,40 @@ |
1 |
+% Generated by roxygen2: do not edit by hand |
|
2 |
+% Please edit documentation in R/pcaplot.R |
|
3 |
+\name{pcaplot3d} |
|
4 |
+\alias{pcaplot3d} |
|
5 |
+\title{Sample PCA plot for transformed data} |
|
6 |
+\usage{ |
|
7 |
+pcaplot3d(x, intgroup = "condition", ntop = 500, returnData = FALSE, |
|
8 |
+ title = NULL, pcX = 1, pcY = 2, pcZ = 3, text_labels = TRUE, |
|
9 |
+ point_size = 3) |
|
10 |
+} |
|
11 |
+\arguments{ |
|
12 |
+\item{x}{A \code{\link{DESeqTransform}} object, with data in \code{assay(x)}, |
|
13 |
+produced for example by either \code{\link{rlog}} or |
|
14 |
+\code{\link{varianceStabilizingTransformation}}} |
|
15 |
+ |
|
16 |
+\item{ntop}{Number of top genes to use for principal components, |
|
17 |
+selected by highest row variance} |
|
18 |
+ |
|
19 |
+\item{returnData}{logical, if TRUE returns a data.frame for further use, containing the |
|
20 |
+selected principal components and intgroup covariates for custom plotting} |
|
21 |
+ |
|
22 |
+\item{title}{The plot title} |
|
23 |
+ |
|
24 |
+\item{pcX}{The principal component to display on the x axis} |
|
25 |
+ |
|
26 |
+\item{pcY}{The principal component to display on the y axis} |
|
27 |
+ |
|
28 |
+\item{pcZ}{The principal component to display on the z axis} |
|
29 |
+ |
|
30 |
+\item{text_labels}{Logical, whether to display the labels with the sample identifiers} |
|
31 |
+ |
|
32 |
+\item{point_size}{Integer, the size of the points for the samples} |
|
33 |
+ |
|
34 |
+\item{Interesting}{groups: a character vector of |
|
35 |
+names in \code{colData(x)} to use for grouping} |
|
36 |
+} |
|
37 |
+\description{ |
|
38 |
+Plots the results of PCA on a 3-dimensional space, interactively |
|
39 |
+} |
|
40 |
+ |