View source: R/plot_correlogram.R
plot_correlogram | R Documentation |
This function wraps the GGally package to facilitate making correlation plots to visually assess the relationships between several numeric variables.
plot_correlogram(
df,
numeric_cols,
file_path = NULL,
wdth = NULL,
hght = NULL,
title_name = NULL
)
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. |
Returns a ggplot2 object.
## Not run: plot_correlogram(df, numeric_cols = c("fcs_score", "rcsi_score", "hhs_score"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.