plot_coloc | R Documentation |
Generates a scatter plot using the results from colocalisationsForGene()
function as an input. The reported trait in each study are shown on the
x-axis and plotted against their corresponding -log2(H4/H3)
values on the y-axis, indicating the evidence of colocalisation between
the molecular QTLs reported in each study and the explored gene. The molecular
QTLs are mapped to the colors of the points. If the results of
colocalisationsForGene()
includes the data for multiple genes, they will
be plotted in separate panels.
plot_coloc(data, biobank = FALSE)
data |
Data Frame: result of colocalisationsForGene function in data frame format, contacting the phewas information for a variant id |
biobank |
Logical: |
A horizontal bar plot for colocalisation of information.
## Not run:
plot_out <- colocalisationsForGene(genes = "ENSG00000169174") %>%
plot_coloc(biobank = FALSE)
plot_out <- colocalisationsForGene(genes = "PCSK9") %>%
plot_coloc(biobank = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.