Get SNPs associations ggplot, either as points or as a linked area. Optionally add labels to most associated points using ggrepel.
ggplot_associations(
df_snp,
pvalue_colname = "pvalues",
labels_colname = "probe_id",
n_labels = 10,
nudge = c(0, 1),
linked_area = FALSE,
byindex = linked_area,
colors = if (linked_area) snp_position_colors(nrow(df_snp)) else "black"
)ggplot
SNP annotation data frame with columns chromosome, position, and as specified by parameters pvalue_colname and optionally labels_colname.
Column name of df_snp with association values
Optional column name of df_snp with labels. Set to NULL to remove.
Number of labels of most associated points to display.
Nudge parameter passed to ggrepel::geom_label_repel.
Add a linked area to associations points, default FALSE
Display by SNP index or chromosomic position (default)
Colors of SNPs