This will plot any haplinSlide object in one figure.
# S3 method for haplinSlide
plot(
x,
filename,
title,
windows,
plot.signif.only = FALSE,
signif.thresh = 0.05,
y.lim,
x.title,
y.title,
file.width,
file.height,
...
)
ggplot
object.
The haplinSlide
object (NB: only the output produced by
running haplinSlide
with the table.output
argument set to TRUE!)
If the plot should be saved to the disk, give the name of the output file including the file extension.
If the user wishes to override the default title of the plot, give it here.
Numerical vector. If given, this will only plot the chosen windows.
Logical: whether to filter out the "non-significant" markers from the plot. Default: FALSE, i.e., plot everything.
The threshold defining the significant p-values: if
plot.signif.only == TRUE
, then only the markers with relative risk p-values
lower than the threshold will be kept for plotting. Default: 0.05.
Vector with two numbers setting the Y limits of the plotted graph.
Title for the X axis (default: "marker").
Title for the Y axis (default: "RR (log scale)").
Width (in inches) for the output plot, if a filename was given.
Height (in inches) for the output plot, if a filename was given.
other arguments (ignored).
The haplinSlide
object is a list of haplin
results - by
default in haptable
form. This is used to plot the relative risk
estimates for all the markers in one plot, to enable easy comparison. NB: those
estimates that have infinite confidence interval will not be plotted.