plot.pca: Plot of PCA for patients

Description Usage Arguments Value

View source: R/prep_pop.R

Description

Function to plot axes of PCA and depict population structures

Usage

1
2
3
4
## S3 method for class 'pca'
plot(res.pca, var.col = NULL, var.name = "Variable", axes.pca,
  show.legend = TRUE, plot.type = c("ggplot", "default"),
  col.manual = NULL, outl = rep(TRUE, length(var.col)))

Arguments

res.pca

Results of PCA

var.col

variable to colour the points (e.g., population)

axes.pca

vector of axes to plot

plot.type

Using own function or default function

outl

Outliers vector to filter out PCA results

Value

Plot of patients in the principal components space.


lgl15/cnmtf documentation built on May 28, 2019, 6:33 p.m.