View source: R/results_heatmap.R
results_heatmap | R Documentation |
Plot of GWAS x cell-type enrichment results from celltype_associations_pipeline.
results_heatmap(
merged_results,
title = NULL,
x_lab = NULL,
fdr_thresh = 0.05,
facet_formula = "EnrichmentMode ~ .",
x_var = "Celltype",
y_var = "GWAS",
fill_var = "-log1p(FDR)",
scales = "free_y",
space = "fixed",
show_plot = TRUE,
height = 5,
width = 7,
dpi = 300,
save_path = file.path(tempdir(), "MAGMA_Celltyping.heatmap.jpg")
)
merged_results |
Enrichment results generated by celltype_associations_pipeline and merged by merge_results. |
title |
Plot title. |
x_lab |
Plot x-axis label. |
fdr_thresh |
FDR filtering threshold. |
facet_formula |
Facet formula for plot, passed to facet_grid. |
x_var |
x-axis variable. |
y_var |
y-axis variable. |
fill_var |
Fill variable. |
scales |
Are scales shared across all facets (the default,
|
space |
If |
show_plot |
Whether to print the plot. |
height |
Plot height. |
width |
Plot width. |
dpi |
Plot resolution. Also accepts a string input: "retina" (320), "print" (300), or "screen" (72). Applies only to raster output types. |
save_path |
Path to save plot to. |
ggplot object.
MAGMA_results <- MAGMA.Celltyping::enrichment_results
merged_results <- MAGMA.Celltyping::merge_results(MAGMA_results)
heat <- MAGMA.Celltyping::results_heatmap(
merged_results = merged_results,
fdr_thresh = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.