Display SNP r2 correlations using points or diamonds with text.
ggplot_ld(
df_ld,
diamonds = length(unique(df_ld$SNP_A)) < 40,
point_size = 120/sqrt(nrow(df_ld)),
reverse = FALSE,
reindex = TRUE
)ggplot
Data frame with columns SNP_A, SNP_B, and R2. As returned by the snprelate_ld function.
Should the values be displayed as diamonds or points ? Default is TRUE for less than 40 SNPs.
Size for geom_point. Ignored if diamonds is TRUE.
Reverse the display (horizontal symmetry)
If FALSE, SNPs are positionned following their IDs