plot.scanonevar implements the plot generic for objects of class 'scanonevar'.
Because scanonevar objects can be viewed in terms of LODs or empirical p-values,
this plotting function checks the 'units' attribute to determine which to plot.
Optionally, a scanone object to be plotting for comparison to the scanonevar object.
chrs
Optionally, the subset of the chromosomes to plot
tests_to_plot
which one or ones of the three possible tests to plot ('mQTL', 'vQTL', and 'mvQTL')
plotting.units
One of 'LOD', 'asymp.p', or 'empir.p', implying whether
LOD scores, asymptotic p-values, or empirical p-values should be plotted.
Defaults to 'LOD'
plot.title
the title of the plot
marker.rug
Should a marker rug be plotted? Defaults to TRUE.
ymax
the top of the y axis
legend_pos
the position of the legend
alpha_pos
the position of the alpha values (false positive rate)
alpha_chr
which chromosome to put the alphas (FPRs) on
alpha_size
size of annotations for alpha=0.05 and alpha=0.01 lines
...
additional plotting arguments
Value
Returns the plot.
Details
If such a strong signal was observed that the empirical p-value underflows R's
float type, this function produces an error. The author is open to suggestions on how
to deal with this situation better.
These plots look better when both x (the scanonevar object) and y (optional scanone
for comparison) are in units p values than when they are in LOD units.