sframe_plot_correlation_matrix: Correlation matrix heatmap

View source: R/plots.R

sframe_plot_correlation_matrixR Documentation

Correlation matrix heatmap

Description

Computes and plots a full pairwise correlation matrix, independent of run_analysis_plan()'s pairwise correlation_pearson/⁠_spearman⁠/ ⁠_kendall⁠ runners (which plot one variable pair at a time via sframe_plot_correlation()). Useful directly, and as the visual companion to validity_report()'s discriminant-validity checks.

Usage

sframe_plot_correlation_matrix(
  data,
  vars,
  method = "pearson",
  palette = c("web", "print")
)

Arguments

data

A data frame of survey responses.

vars

Character vector of column names to correlate.

method

One of "pearson", "spearman", "kendall".

palette

One of "web" (diverging red/teal gradient) or "print" (white-to-black gradient by magnitude, signed label). See sframe_brand().

Value

A ggplot2 object.

See Also

validity_report()


surveyframe documentation built on July 25, 2026, 1:07 a.m.