assocplot {comorbidPGS} | R Documentation |
Multiple PGS Associations Plot
Description
assocplot()
take a data frame of associations, return plot of the associations
from assoc()
(ggplot2 object or list of ggplot object)
Usage
assocplot(score_table = NULL, axis = "vertical", pval = FALSE)
Arguments
score_table |
a dataframe with association results with at least the following columns:
|
axis |
a character, |
pval |
a parameter specifying information on how to display P-value
|
Value
return either:
a ggplot object representing the association results.
a list of two ggplot objects, accessible by $continuous_phenotype and $discrete_phenotype, if there are both Continuous Phenotypes and Discrete Phenotypes (i.e. "Categorical" or "Cases/Controls")