plot_corrplot: Creates correlation plot using corrplot package

plot_corrplotR Documentation

Creates correlation plot using corrplot package

Description

Creates correlation plot using corrplot package

Usage

plot_corrplot(
  mat,
  labels = "",
  text_size = 0.5,
  pch_size = 0.5,
  gradient_palette = "RdBu",
  corr_method = c("pairwise.complete.obs", "spearman")
)

Arguments

mat

Numeric data frame or matrix, where columns will be correlated. Must not contain any NAs; use complete.cases(mat) to remove rows with NAs.

labels

A character vector of at least length 1 that will be collapsed for file name/plot titles.

text_size

The size of text labels on correlation plots. Color legend size is text_size/1.5.

pch_size

The size of star labels.

gradient_palette

RColorBrewer palette. See display.brewer.all for all options.

corr_method

A character vector of 2 that correspond to "use" and "method" parameters in cor. The first defaults to "pairwise.complete.obs" and second is one of "pearson","spearman","kendall".

Value

Plot object.

See Also

Other plotting: plot_corrplotgg(), plot_discrete_barplot(), plot_heatmap(), plot_het_barplot(), plot_indiv_boxplot(), plot_indiv_corrscatt(), plot_indiv_paired(), plot_overview_boxplot(), plot_overview_corr_scatt(), plot_profile_barplot(), run_corrplot_analysis()


kazeera/hourglass documentation built on April 5, 2025, 7:18 a.m.