PCA result visualisation

Share:

Description

Plot the given pca results with colour divided by the given groups.

Usage

1
vis.pca(.data, .groups = NA)

Arguments

.data

Result from prcomp() function or a data frame with two columns 'First' and 'Second' stands for the first PC and the second PC.

.groups

List with names for groups and indices of the group members. If NA than each member is in the individual group.

Value

ggplot object.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.