S3 plot method for objects of class "glow_marginal_scan" (returned by marginal_scan). Dispatches to plot_manhattan, plot_qq, or both.

# S3 method for class 'glow_marginal_scan'
plot(x, type = "manhattan", ...)

Arguments

x

A glow_marginal_scan object.

type

Character: "manhattan", "qq", or "both". Default: "manhattan".

...

Additional arguments forwarded to the underlying plot function.

Value

For type = "qq" or type = "both": the genomic inflation factor \(\lambda_{GC}\) (invisibly). For type = "manhattan": invisible(NULL).

Details

When type = "both", the graphics device is split into a 1x2 panel using par(mfrow = c(1, 2)). The original par settings are restored on exit via on.exit().

All further arguments in ... are passed to both underlying plot functions when type = "both".

Examples

if (FALSE) { # \dontrun{
results <- marginal_scan("chr22.gds", nm, use_SPA = FALSE)
plot(results)                        # Manhattan
plot(results, type = "qq")           # QQ
plot(results, type = "both")         # side by side
} # }