1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{vis.pca}
\alias{vis.pca}
\title{PCA result visualisation}
\usage{
vis.pca(.data, .groups = NA, .text = T)
}
\arguments{
\item{.data}{Result from prcomp() function or a data frame with two columns 'First' and 'Second'
stands for the first PC and the second PC.}
\item{.groups}{List with names for groups and indices of the group members. If NA than each
member is in the individual group.}
\item{.text}{If T than print the names of the subjects.}
}
\value{
ggplot object.
}
\description{
Plot the given pca results with colour divided by the given groups.
}
\examples{
\dontrun{
data(twb)
tmp = geneUsage(twb)
vis.pca(prcomp(t(tmp[,-1])))
}
}
|