djpr_plot_text: Functions to create title, subtitle, and caption of plots...

djpr_plot_titleR Documentation

Functions to create title, subtitle, and caption of plots Creates container Currently implemented via inline CSS.

Description

Functions to create title, subtitle, and caption of plots Creates container Currently implemented via inline CSS.

Usage

djpr_plot_title(..., rel_font_size = 129)

djpr_plot_subtitle(..., rel_font_size = 100)

djpr_plot_caption(..., rel_font_size = 73)

Arguments

...

arguments passed to container (eg. div)

rel_font_size

Numeric. Relative font size. In percent, so 100 would set the font size equal to the base font size.

Value

A shiny.tag object.

Examples


djpr_plot_title("A title goes here")

djpr_plot_subtitle("A subtitle goes here", rel_font_size = 100)

# Use as container in shiny::textOutput()
## Not run: 
textOutput("title", container = djpr_plot_title)

## End(Not run)

djpr-data/djprshiny documentation built on May 14, 2023, 1:15 p.m.