ggplot_snp_pos: Ggplot SNPs position

View source: R/gtable_ld.R

ggplot_snp_posR Documentation

Ggplot SNPs position

Description

Get SNPs position ggplot with mappings to combine with other ggplots. Optionally add labels and an upper subset.

Usage

ggplot_snp_pos(
  df_snp,
  upper_subset = NULL,
  labels_colname = NULL,
  colors = snp_position_colors(nrow(df_snp))
)

Arguments

df_snp

SNP annotation data frame with a column named position and, if specified, one named as the labels_colname parameter.

upper_subset

Subset of df_snp for the positions on the upper side

labels_colname

Optional column name of df_snp to use as SNP labels.

colors

Colors for each SNP

Value

ggplot


snplinkage documentation built on Sept. 11, 2024, 6:02 p.m.