#' @export
justgage <- function(title, value, min, max, label = NULL,
width = NULL, height = NULL, ...){
options = list(title = title, value = value, min = min, max = max,
label = label, width = width, height = height, ...
)
options = Filter(Negate(is.null), options)
structure(class = c('justGage', 'htmlwidget'), options)
}
#' @export
justgageOutput <- htmlwidgets::widgetOutput('justGage')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.