R/plot_celltype_associations.r
plot_celltype_associations.Rd
Can take input from either calculate_celltype_associations or calculate_conditional_celltype_associations.
plot_celltype_associations(
ctAssocs,
ctd,
useSignificanceLine = TRUE,
savePDF = TRUE,
fileTag = "",
plotDendro = TRUE,
gwas_title = "",
plotLegend = TRUE,
figsDir = NULL,
show_plot = TRUE,
bind_plots = FALSE,
ncol = 1,
verbose = TRUE
)
Output from either calculate_celltype_associations or calculate_conditional_celltype_associations.
Cell type data structure containing
specificity_quantiles
.
TRUE or FALSE. Should their be a vertical line marking Bonferroni significance?
TRUE or FALSE. Save figure to file or print to screen?
String appended to the names of the saved PDFs, i.e. the name of the celltype data file used
Should the dendrogram of celltypes be shown alongside the figure? TRUE or FALSE.
Title to be displayed over the figure (string).
Should the figure legend be displayed?
Directory where figures should be created.
Print to the plot(s).
Bind the list of plots together using wrap_plots.
Number of columns to put plots into during bind_plots
.
Print messages.
A list of ggplot objects.
ctAssocs <- MAGMA.Celltyping::enrichment_results[[1]]$ctAssocsLinear
ctd <- ewceData::ctd()
#> see ?ewceData and browseVignettes('ewceData') for documentation
#> loading from cache
figs <- plot_celltype_associations(ctAssocs = ctAssocs,
ctd = ctd,
savePDF = FALSE)
#> Plotting level 1:
#> + Preparing data.
#> + Generating figure.
#> Plotting level 2:
#> + Preparing data.
#> + Generating figure.