Description Usage Arguments Value Functions Author(s) See Also Examples
The plot of a pair of principal components is displayed for a matrix or a
single BAf-class
object. Colors or symbols of the points can be
diffrentiated by the variable given in col_by or pch_by to assist
to find hidden substructure of sample. The principal components were obtained
by (prcomp
) with scaling.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | plot_PC(x, pc = c(1, 2), main = "", xlab, ylab, ...)
## S4 method for signature 'prcomp'
plot_PC(x, pc = c(1, 2), main = "", xlab, ylab, ...)
## S4 method for signature 'matrix'
plot_PC(x, pc = c(1, 2), main = "", xlab, ylab, ...)
## S4 method for signature 'BAf'
plot_PC(
x,
pc = c(1, 2),
main = "",
xlab,
ylab,
...,
col_by = NULL,
pch_by = NULL,
legend_arg = list(x = "topright")
)
|
x |
an object of the |
pc |
a vector that consists of two integer elements for two principal components |
main, xlab, ylab |
same as |
... |
pass to |
col_by, pch_by |
a name of a column in |
legend_arg |
a list of parameters to be used in adding a legend. If NULL, skip to add legend |
plot_PC
prcomp
output object
plot_PC,prcomp-method
: The input is the output of 'prcomp'
plot_PC,matrix-method
: The input is a 'matrix'
plot_PC,BAf-method
: The input is a 'BAf' object
Mun-Gwan Hong mun-gwan.hong@scilifelab.se
1 2 3 4 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.