View source: R/Visualization.R
myPCAplot | R Documentation |
Function to plot PCA
myPCAplot( df = NULL, group_by = NULL, text_size = 20, point_size = 2, alpha = 1, legend_position = "right", legend_point_size = NULL, ... )
df |
Data frame containing the PCA dimensions to plot and the labels to use as colors. PCA data columns should be named as "Dim1" and "Dim2" |
group_by |
Labels to use as colors. |
text_size |
Plot text size |
point_size |
Plot point size |
alpha |
Point transparency |
legend_position |
The position of the legend. It can take values as "top", bottom", "left", "right", or "none. |
legend_point_size |
Legend point size. |
... |
Arguments passed to other methods. |
A ggplot object containing the PCA plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.