generate a 2d heatmap plot comparing the PRS (Z-score if geno_z == TRUE) vs phenotype.
1 2 3 4 5 6 7 8 | plot_PRS_vs_phe(
plot_df,
plot_bin2d_x = NULL,
plot_bin2d_y = NULL,
geno_score_col = "geno_score",
phe_col = "phe",
geno_z = TRUE
)
|
plot_df |
PRS and phenotype columns for (typically test) set of individuals |
plot_bin2d_x |
size of the x-axis grid in 2d heatmap |
plot_bin2d_y |
size of the y-axis grid in 2d heatmap |
geno_score_col |
column name of the score in plot_df |
phe_col |
column name of the phenotype data in plot_df |
geno_z |
whether to take the Z-score transformation of the score |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.