A function to generate Manhattan plots.
manhattan.plot(
dataset,
chr,
pvalue,
position,
fileName,
plot.title = "Manhattan Plot",
plot.subtitle = "",
p.threshold = 0.01,
sig.threshold.log = -log10(5 * 10^-8),
beta = NULL,
std.error = NULL,
check.columns = TRUE
)
Generates and saves a Manhattan plot for the provided data.
Data frame or data table containing the below columns
Name of chromosome column
Name of P-value column
Name of position column
Full name and path of file to be saved (file extension should be 'png'). e.g. “c:/users/researcher/study/man_plot.png”
Title of the plot, default value is 'Manhattan plot'
Subtitle of the plot
Threshold for plotting variants (i.e. p-values > 0.01 will not be plotted). Setting a higher threshold will significantly increase plotting time
The -log10 transformed significance threshold, used for plotting a threshold line (e.g. 8 = 10^-8)
(optional) Name of the effect-size column
(optional) Name of the standard error column
Whether to check input columns for invalid values