ggplot_selection: ggplot_selection

Description Usage Arguments Value

View source: R/ggplots.R

Description

Displays the selection of SNPs for each principal component. Peaks is a list of variable indexes corresponding to the pca object.

Usage

1
2
3
4
5
6
7
8
9
ggplot_selection(
  peaks,
  pca,
  axes = paste0("PC", 1:10),
  ncol = 5,
  scales = "free_y",
  ...,
  n_points = 2000
)

Arguments

peaks

List returned by peak_selection

pca

PCA data frame, requires variable contributions

axes

Axes to plot

ncol

ggplot2::facet_wrap

scales

ggplot2::facet_wrap

...

Passed to ggplot2::facet_wrap

n_points

Maximum number of largest values to plot, for each principal component

Value

ggplot


ThomasChln/snpclust documentation built on June 11, 2020, 4:27 p.m.