manhattan_plot: Manhattan Plot

View source: R/plotUtils.R

manhattan_plotR Documentation

Manhattan Plot

Description

manhattan_plot displays a Manhattan plot which represents the p-values for each SNP for a particular test statistic.

Usage

manhattan_plot(x, chr.info, snp.info, plt.pkg = "ggplot", K = 1)

Arguments

x

an object of class "pcadapt" generated with pcadapt containing the p-values of interest.

chr.info

a list containing the chromosome information for each marker.

snp.info

a list containing the names of all genetic markers present in the input.

plt.pkg

a character string specifying the package to be used to display the graphical outputs. Use "plotly" for interactive plots, or "ggplot" for static plots.

K

an integer specifying which principal component to display when method="componentwise".


pcadapt documentation built on Aug. 29, 2023, 5:07 p.m.