View source: R/helper_plot_correlation.R
plot_correlation | R Documentation |
This function creates a plot to illustrate the correlation between different variables,specifically focusing on the confounding variable, predictor of interest, and outcome.It uses ggplot2 for graphical representation.
plot_correlation(r_con, obs_r, critical_r)
r_con |
Correlation coefficient related to the confounding variable. |
obs_r |
Observed correlation coefficient. |
critical_r |
Critical correlation coefficient for decision-making. |
A ggplot object representing the correlation diagram.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.