plotPCA | R Documentation |
Plots PCA results in a scatterplot.
plotPCA(object, ...)
## S4 method for signature 'DimRed'
plotPCA(
object,
n_dims = 2,
alpha_by = NULL,
color_by = NULL,
shape_by = NULL,
size_by = NULL,
pt_alpha = 0.9,
pt_color = "black",
pt_fill = "black",
pt_shape = 19,
pt_size = 1,
color_aes = "color",
clrp = "milo",
clrp_adjust = NULL,
clrsp = "inferno",
...
)
## S4 method for signature 'Analysis'
plotPCA(
object,
n_dims = 2,
alpha_by = NULL,
color_by = NULL,
shape_by = NULL,
size_by = NULL,
pt_alpha = 0.9,
pt_color = "black",
pt_fill = "black",
pt_shape = 19,
pt_size = 1,
color_aes = "color",
clrp = "milo",
clrp_adjust = NULL,
clrsp = "inferno",
...
)
object |
Any object for whose class a method has been defined. |
n_dims |
Numeric value. Integer that indicates the number of principal component vectors that are plotted. |
clrp |
Character value. Specifies the color palette to be used to represent
groups of discrete variables. Run |
A ggplot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.