info_box: Create an info box

View source: R/graphs.R

info_boxR Documentation

Create an info box

Description

Create an info box that is a color background with a title/content centered in the middle.

Usage

info_box(title, content, fill = "blue", col = "white")

Arguments

title

A title (centered in the middle)

content

Content to show (centered, larger than title)

fill

Color for the background

col

Color of the text

Details

This function implements the drawing of a "card", suitable for a dashboard. The idea is that one creates a color background, then plots a title and text centered in the plot window. The plot fills the entire boundary.

Value

A ggplot object that represents the info box.

Examples

## Not run: 
info_box("Title","Content", fill ="blue", col="white")

## End(Not run)

steveneschrich/pgreportr documentation built on Jan. 13, 2025, 7:09 p.m.