Learn R Programming

chronicle (version 0.3)

make_title: 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

Run this code
# NOT RUN {
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'))
# }

Run the code above in your browser using DataLab