eaf_plot.Rd
Plotting reported effect allele frequencies (EAF) against a reference set to identify study variants which significantly deviate from the expected population frequencies.
eaf_plot(
gwas,
eaf_col = "EAF",
ref_eaf_col = "EUR_EAF",
tolerance = 0.2,
colours = list(missing = "#5B1A18", outlier = "#FD6467", within = "#7294D4"),
title = NULL,
facet_grid_row_col = NULL,
facet_grid_col_col = NULL
)
a data.table
a string, the column containing the study EAF data
a string, the column containing the reference EAF data
a numeric, frequency difference that determines outliers
a 3 element list of colour codes, e.g. list(missing="#5B1A18", outlier="#FD6467", within="#7294D4")
a string, the plot title
(optional), a column by which to facet the plot by rows
(optional), a column by which to facet the plot by columns
a ggplot