Description Usage Arguments Author(s) Examples
Build a Metro charms
1 2 3 4 5 6 7 | metroCharms(
...,
id,
position = c("right", "left", "top", "bottom"),
opacity = NULL,
background = "back"
)
|
... |
Any UI element. |
id |
Charms unique id. Needed by the charmsToggle. |
position |
Charms position: right, left, top or bottom. |
opacity |
Charms opacity. NULL by default. Between 0 and 1. |
background |
Charms background color. "black" by default. |
David Granjon, dgranjon@ymail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | if(interactive()){
library(shiny)
library(shinyMetroUi)
shiny::shinyApp(
ui = metroPage(
br(), br(), br(), br(),
charmsToggle(id = "mycharm", "Toggle charms"),
metroCharms(
id = "mycharm",
background = "dark",
position = "top",
opacity = "0.5",
sliderInput(
"obs",
"Number of observations:",
min = 0,
max = 1000,
value = 500
)
)
),
server = function(input, output) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.