ggplot_ld | R Documentation |
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
)
df_ld |
Data frame with columns SNP_A, SNP_B, and R2. As returned by the snprelate_ld function. |
diamonds |
Should the values be displayed as diamonds or points ? Default is TRUE for less than 40 SNPs. |
point_size |
Size for geom_point. Ignored if diamonds is TRUE. |
reverse |
Reverse the display (horizontal symmetry) |
reindex |
If FALSE, SNPs are positionned following their IDs |
ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.