plot.sframe_analysis_results: Plot analysis-plan results

View source: R/plots.R

plot.sframe_analysis_resultsR Documentation

Plot analysis-plan results

Description

Draws the charts that run_analysis_plan() attaches when called with plots = TRUE. With which supplied, returns that single chart. With which omitted, prints every attached chart in queue order and returns the list invisibly. Regression diagnostic panels stay on the result's diagnostic_plots element and are not drawn here.

Usage

## S3 method for class 'sframe_analysis_results'
plot(x, ..., which = NULL)

Arguments

x

An sframe_analysis_results object from run_analysis_plan().

...

Ignored.

which

A research-question number or a plan block id selecting one chart, or NULL for all.

Value

A ggplot2 object when which is supplied, otherwise an invisible named list of ggplot2 objects keyed by plan block id.


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