input_histoslider | R Documentation |
Creates a Shiny UI input binding to a histogram with a slider "filter" control.
input_histoslider(
id,
label,
values,
start = NULL,
end = NULL,
width = "100%",
height = 175,
breaks = rlang::missing_arg(),
options = list()
)
id |
An input id. |
label |
A label for the input (can be |
values |
a vector of numeric values for which the histogram is desired. |
start |
A numeric value for the starting handle. |
end |
A numeric value for the ending handle. |
width, height |
Any valid CSS unit defining the width/height. |
breaks |
determines how histogram bins are computed (see |
options |
a list of histoslider options. |
A Shiny UI input element.
update_histoslider
if (interactive()) {
library(shiny)
shinyApp(
input_histoslider("x", "Random", rnorm(100)),
function(input, output) {
observe(print(input$x))
}
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.