Plot_H2_coefficient: Plot S-LDSC coefficient p-value per annotation

Description Usage Arguments Value

Description

Function plotting coefficient p-value of annotation, with GWASs facetted.

Usage

1
2
3
4
5
6
7
8
9
Plot_H2_coefficient(
  h2_results,
  x_axis,
  xlab,
  fill_variable = NULL,
  colour,
  pvalue_cutoff,
  show_legend = FALSE
)

Arguments

h2_results

Dataframe with overall heritability.

x_axis

character. Variable to be plotted on the x-axis.

xlab

character. X-axis name in quotation marks.

fill_variable

character. Variable to be used to determine the fill colour of bars/points. Default is NULL.

colour

character vector. If fill_variable not NULL then supply colours to be used.

pvalue_cutoff

numeric. P-value cutoff after multiple test correction for number of annotations and GWASs.

show_legend

logical. Default = FALSE.

Value

Ggplot of co-efficient p-values.


RHReynolds/LDSCforRyten documentation built on Sept. 27, 2021, 5:20 p.m.