sframe_plot_variable_distribution: Raw-variable distribution panels: histogram, boxplot, and Q-Q

View source: R/plots.R

sframe_plot_variable_distributionR Documentation

Raw-variable distribution panels: histogram, boxplot, and Q-Q

Description

Unlike sframe_plot_descriptives(), which summarises skewness and kurtosis across the variables in a descriptives_report() table, this operates on one variable's raw values directly (the report table only stores summary statistics, not the underlying vector), matching the pattern sframe_plot_correlation_matrix() already uses for report-independent, data-driven plots.

Usage

sframe_plot_variable_distribution(data, variable, palette = c("web", "print"))

Arguments

data

A data frame of survey responses.

variable

Character. Column name of the variable to plot.

palette

One of "web" or "print". See sframe_brand().

Value

A named list of three ggplot2 objects (histogram, boxplot, qq), or NULL if fewer than two complete values remain.

See Also

descriptives_report(), sframe_plot_descriptives()


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