ggplot_snp_pos | R Documentation |
Get SNPs position ggplot with mappings to combine with other ggplots. Optionally add labels and an upper subset.
ggplot_snp_pos(
df_snp,
upper_subset = NULL,
labels_colname = NULL,
colors = snp_position_colors(nrow(df_snp))
)
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 |
ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.