ggPhenotypeByDegree {ggpedigree} | R Documentation |
Plot correlation of genetic relatedness by phenotype
Description
This function plots the phenotypic correlation as a function of genetic relatedness.
Usage
ggPhenotypeByDegree(
df,
y_var,
y_se = NULL,
y_stem_se = NULL,
y_ci_lb = NULL,
y_ci_ub = NULL,
config = list(),
data_prep = TRUE,
...
)
Arguments
df |
Data frame containing pairwise summary statistics. Required columns:
|
y_var |
Name of the y-axis variable column (e.g., "r_pheno_rho"). |
y_se |
Name of the standard error column (e.g., "r_pheno_se"). |
y_stem_se |
Optional; base stem used to construct SE ribbon bounds. (e.g., "r_pheno") |
y_ci_lb |
Optional; lower bound for confidence interval (e.g., "r_pheno_ci_lb"). |
y_ci_ub |
Optional; upper bound for confidence interval (e.g., "r_pheno_ci_ub"). |
config |
A list of configuration overrides. Valid entries include:
|
data_prep |
Logical; if TRUE, performs data preparation steps. |
... |
Additional arguments passed to 'ggplot2' functions. |
Value
A ggplot object containing the correlation plot.