plot_pca | R Documentation |
Produce a PCA plot from produce_pca_df results
plot_pca(
res_pca,
size = 3,
color = NULL,
shape = NULL,
show_names = TRUE,
title = NULL,
graph = TRUE,
legend.position = "right",
legend.box = "vertical"
)
res_pca |
The |
size |
The size of the points. Default: 3. |
color |
The name of the column in |
shape |
The name of the column in |
show_names |
Try to add the labels of each point? Will only add the
labels if the points are not too closely clustered together in the PCA.
Default: |
title |
Add a title to the graph? If |
graph |
Produce the graph. |
legend.position |
Value for the |
legend.box |
Value for the |
Returns the ggplot
object
txi <- get_demo_txi()
res_pca <- produce_pca_df(txi)
p <- plot_pca(res_pca, graph = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.