This function creates a correlation matrix plot of all variables in a given dataset using the corrplot package

plot_correlation_matrix(
  data,
  title = "Correlation Matrix",
  size_coercoef = 0.5
)

Arguments

data

A data frame containing numeric variables

title

A character string representing the title of the plot (optional)

size_coercoef

A numeric representing the size for the correlation coefficients

Value

A corrplot object displaying the correlation matrix plot, or an error message if an exception occurs