ggplot_manhat: ggplot_manhat

Description Usage Arguments Value

View source: R/ggplots.R

Description

Displays Manhattan-like plot for SNPs contributions to Principal Components

Usage

1
2
3
4
5
6
7
8
9
ggplot_manhat(
  pca,
  gdata,
  axes = paste0("PC", 1:10),
  byposition = TRUE,
  n_points = 2000,
  ncol = 5,
  ...
)

Arguments

pca

PCA data frame, requires variable contributions

gdata

GenotypeData object with snpIDs matching df_vars column DIMRED_VARNAME

axes

Axes to plot

byposition

Plot the SNPs by chromosome and poistion or by index

n_points

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

ncol

ggplot2::facet_wrap

...

Passed to ggplot2::facet_wrap

Value

ggplot


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