ggplot_snp_pos {snplinkage} | R 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
[Package snplinkage version 1.0.0 Index]