Description Usage Arguments Details Value Note Author(s) See Also Examples
Principal Component Analysis plot
1 2 3 4 5 6 |
DBA |
DBA object. |
attributes |
attribute or vector of attributes to use to color plotted points. Each unique combination of attribute values will be assigned a color. Chosen from:
Note that |
minval |
Set all scores less than this to minval |
maxval |
Set all scores greater than this to maxval |
contrast |
number of contrast to use for PCA; if present, plots a PCA based on a differential binding affinity analysis
(see |
method |
method used for analysis (used in conjunction with contrast):
|
th |
significance threshold; all sites with FDR (or p-values, see |
bUsePval |
if |
report |
report (obtained from |
score |
Score to use for count data.
Only used when plotting the global binding matrix (no
|
bLog |
Logical indicating that log2 values should be used. Only applicable to read count scores (not peak scores). |
mask |
mask indicating a subset of peaksets to use when using global binding matrix scores.
If a |
sites |
logical vector indicating which sites to include in PCA.
Only relevant when using global binding matrix ( |
label |
A metadata field to use as a label in 2D plots.
The value for this field will be written directly on the plot near the dot for each sample.
Values can be any of those valid for the |
cor |
a logical value indicating whether the calculation should use the correlation matrix or the covariance matrix. Passed into princomp. |
b3D |
logical indicating that three principal components should be plotted (requires package |
vColors |
vector of custom colors; is absent, default colors will be used. |
dotSize |
size of dots to plot; is absent, a default will be calculated. |
labelSize |
Scaling factor for labels if present. Default is 0.8. |
labelCols |
Vector of colors to use for labels. Default is "black". |
components |
Number(s) of the components to plot.
Can be a vector of two or three component numbers, or a single integer.
If an integer, that component,
in addition to the succeeding one ( |
... |
arguments passed to |
MODE: PCA plot using significantly differentially bound sites:
dba.plotPCA(DBA, attributes, minval, maxval,
contrast, method, th, bUsePval,
b3D=F, vColors, dotSize, ...)
MODE: PCA plot using global binding matrix:
dba.plotPCA(DBA, attributes, minval, maxval,
mask, sites,
b3D=F, vColors, dotSize, ...)
trellis
plot from lattice
package; see xyplot
uses rgl package for 3D plots (if available)
Rory Stark
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | data(tamoxifen_peaks)
# peakcaller scores PCA
dba.plotPCA(tamoxifen)
# raw count correlation PCA
data(tamoxifen_analysis)
dba.plotPCA(tamoxifen)
#PCA based on normalized data for all sites
dba.plotPCA(tamoxifen,contrast=1,th=1)
#PCA based on DB sites only
p <- dba.plotPCA(tamoxifen,contrast=1)
p <- dba.plotPCA(tamoxifen,contrast=1,attributes=DBA_TISSUE)
p <- dba.plotPCA(tamoxifen,contrast=1,attributes=DBA_TISSUE,label=DBA_CONDITION)
p <- dba.plotPCA(tamoxifen,contrast=1,attributes=DBA_CONDITION,label=DBA_TISSUE)
p <- dba.plotPCA(tamoxifen,contrast=1,attributes=c(DBA_TISSUE,DBA_CONDITION),
label=DBA_REPLICATE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.