vis.pca: PCA result visualisation

Description Usage Arguments Value

View source: R/plots.R

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.


tcR documentation built on May 19, 2017, 9:48 p.m.

Search within the tcR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.