plot_correlation: Plot Correlation Diagram

View source: R/helper_plot_correlation.R

plot_correlationR Documentation

Plot Correlation Diagram

Description

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.

Usage

plot_correlation(r_con, obs_r, critical_r)

Arguments

r_con

Correlation coefficient related to the confounding variable.

obs_r

Observed correlation coefficient.

critical_r

Critical correlation coefficient for decision-making.

Value

A ggplot object representing the correlation diagram.


jrosen48/konfound documentation built on April 13, 2024, 3:47 a.m.