plot_indiv_corrscatt: Plot all correlation scatter plots for pairwise variables

View source: R/corrscatt.R

plot_indiv_corrscattR Documentation

Plot all correlation scatter plots for pairwise variables

Description

Plot all correlation scatter plots for pairwise variables

Usage

plot_indiv_corrscatt(
  df,
  rowAnn_col = 1,
  cor.method = "spearman",
  out_dir = ".",
  labels = ""
)

Arguments

df

A data frame with the first column as discrete values to group by (i.e. rowAnn_col), and the rest of the columns are numeric variables to plot.

rowAnn_col

A column index (numeric) or name in df indicating which groups to stratify by.

cor.method

Method for correlation (one of "pearson","spearman","kendall").

out_dir

The output directory where the plot will be saved, default is current working directory.

labels

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

Warning

This function will take a long time to run depending on the number of variables.

See Also

Other plotting: plot_corrplot(), plot_corrplotgg(), plot_discrete_barplot(), plot_heatmap(), plot_het_barplot(), plot_indiv_boxplot(), 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.