plot_correlogram: Plot Correlogram

View source: R/plot_correlogram.R

plot_correlogramR Documentation

Plot Correlogram

Description

This function wraps the GGally package to facilitate making correlation plots to visually assess the relationships between several numeric variables.

Usage

plot_correlogram(
  df,
  numeric_cols,
  file_path = NULL,
  wdth = NULL,
  hght = NULL,
  title_name = NULL
)

Arguments

df

Inputs a dataframe.

numeric_cols

Inputs a character vector of specifying the column names of the numeric variables to use.

file_path

Inputs an optional character value specifying the file path location to save an image of the plot. Recommended to specify as a .jpg or .png file.

wdth

Inputs an optional numeric value for the width of the image.

hght

Inputs an optional numeric value fo the height of the image.

title_name

Inputs an optional character value for the title of the plot.

Value

Returns a ggplot2 object.

Examples

## Not run: plot_correlogram(df, numeric_cols = c("fcs_score", "rcsi_score", "hhs_score"))

SaeedR1987/healthyr documentation built on July 4, 2023, 11:17 p.m.