sparkvalueBox | R Documentation |
This function creates a custom value box with a sparkline plot embedded in it.
sparkvalueBox(
title,
sparkline_data,
description,
type = "line",
box_color = "white",
width = 4,
elevation = 0,
...
)
title |
The title or heading of the value box. |
sparkline_data |
The data used to generate the sparkline plot. |
description |
A short description or additional information displayed below the value box. |
type |
The type of sparkline plot to generate. Default is "line". |
box_color |
The background color of the value box. |
width |
The width of the value box. Default is 4. |
elevation |
The elevation of the value box. Default is 0. |
... |
Additional parameters to be passed to the sparkline function. |
Returns a custom value box with the specified parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.