survey_plot_title {surveydata}R 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()


[Package surveydata version 0.2.7 Index]