gaugeOutput: Render a gauge widget within an application page.

Description Usage Arguments Author(s) See Also Examples

Description

Render a gauge widget within an application page.

Usage

1
2
3
  gaugeOutput(outputId, title = "Title", min = 0, max = 1,
    units = "", width = "200px", height = "200px",
    value = min)

Arguments

outputId

output variable from which to read the gauge variable

width

Gauge width. Must be a valid CSS unit (like "100%", "400px", "auto") or a number, which will be coerced to a string and have "px" appended.

height

Gauge height Must be a valid CSS unit (like "100%", "400px", "auto") or a number, which will be coerced to a string and have "px" appended.

Author(s)

Jeff Allen <jeff.allen@trestletechnology.net>

See Also

reactive

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 
#in ui.R
shinyUI(bootstrapPage(#'
 gridster(tile.width = 200, tile.height = 200,
   gridsterItem(col = 1, row = 1, size.x = 1, size.y = 1,
     gaugeOutput("myGauge", "150px", "150px")
   ),
   gridsterItem(col = 2, row = 1, size.x = 1, size.y = 1,
     textOutput("myText")
   ),
   gridsterItem(col = 1, row = 2, size.x = 2, size.y = 1,
     plotOutput("myPlot", height = 200)
   )
 )
)

#The corresponding server.R
shinyServer(function(input, output, session) {
 output$myGauge <- reactive({
   abs(rnorm(1) * 100)
 })
}

## End(Not run)

trestletech/ShinyDash documentation built on May 31, 2019, 7:47 p.m.