survey_plot_title: Construct plot title from the question text, wrapping at the...

View source: R/plots.R

survey_plot_titleR Documentation

Construct plot title from the question text, wrapping at the desired width.

Description

This creates a plot title using ⁠[ggplot2::ggtitle()]⁠. The main title is string wrapped, and the subtitle is the number of observations in the data.

Usage

survey_plot_title(data, q, width = 50)

Arguments

data

surveydata object

q

Question

width

Passed to strwrap()


surveydata documentation built on March 31, 2023, 10:35 p.m.