Plot a coloc_result object
plot.coloc_result.RdCreates visualisations for colocalization results. Requires the ggplot2
package.
Value
A ggplot object. Returns NULL invisibly if the result status is
not "success" or if the required data is unavailable.
Examples
if (FALSE) { # \dontrun{
result <- run_coloc(
exposure = cd40_exposure,
outcome = sjogren_outcome,
gene_chr = "20", gene_start = 44746911, gene_end = 44758502,
bfile = system.file("extdata", "ld_ref", package = "mrpipeline")
)
plot(result, type = "pp_bar")
plot(result, type = "regional")
} # }