vbox_graphic: builds the div for a shiny value box with a simple...

View source: R/vbox.R

vbox_graphicR Documentation

builds the div for a shiny value box with a simple sparklines-like graphic

Description

builds the div for a shiny value box with a simple sparklines-like graphic

Usage

vbox_graphic(
  label = "label",
  textid = "textOutput_here",
  col = "rgba(60,130,180,0.5)",
  graph_title = "nowcast",
  value = 1:10
)

Arguments

label

The label - character of length one

textid

The value - A character vector of length one, optionally the textOutput of a reactive value if using vbox_reactive

col

Bkgd col- A character of rbg(), rgba(), or a html color name recognized in R

graph_title
  • Sparkline title, character of length one

value

the sparklines values to be plotted - a numeric vector

Value

A character vector of the div tree to be rendered in the ui of a shiny app

Examples

vbox_graphic(label = 'label',textid = 'textOutput_here',col = 'rgba(60,130,180,0.5)',
graph_title='nowcast',value=1:10)

aarong1/RshinyHelpers documentation built on June 15, 2022, 4:52 a.m.