File: vis.pca.Rd

package info (click to toggle)
r-cran-tcr 2.3.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 2,316 kB
  • sloc: cpp: 187; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 736 bytes parent folder | download | duplicates (2)
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])))
}
}