info_box | R Documentation |
Create an info box that is a color background with a title/content centered in the middle.
info_box(title, content, fill = "blue", col = "white")
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 |
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.
A ggplot object that represents the info box.
## Not run:
info_box("Title","Content", fill ="blue", col="white")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.