R/ctwas_plots.R
make_convergence_plots.Rd
Make convergence plots for the estimated parameters
make_convergence_plots(
param,
gwas_n,
plot_loglik = FALSE,
log_enrichment = FALSE,
title.size = 10,
legend.size = 8,
colors = c("#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7",
"#999999"),
group_names,
ncol = 2
)
a list of cTWAS parameter estimation result from est_param
the sample size of the GWAS summary statistics
If TRUE, plot log-likelihood.
If TRUE, plot enrichment in log scale.
font size of the plot title
font size of the plot legend title
colors for different groups, passed as the
values
input to scale_color_manual
.
If fewer colors than "fits" are given, the colors are recycled.
groups to be included in the plots
number of columns in the output plot