make_title: Guess a title out of function parameters

View source: R/enchunk.R

make_titleR Documentation

Guess a title out of function parameters

Description

Detects which make_* function is passed and builds a generic name based on its parameters.

Usage

make_title(fun, params)

Arguments

fun

chronicle make_* function

params

parameters for fun

Value

A generic title for the plot

Examples

make_title(fun = chronicle::make_barplot,
                     params = list(value = 'Amount',
                                   bars = 'Country',
                                   break_bars_by = 'Region'))

make_title(fun = chronicle::make_raincloud,
           params = list(value = 'value',
                         groups = 'species'))

pheymanss/chronicle documentation built on Jan. 19, 2024, 6 a.m.