The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
A Shiny input binding wrapper for the histoslider React component.
Install the stable release of histoslider
on CRAN:
install.packages("histoslider")
input_histoslider()
currently supports creating
histogram sliders from numeric, date, datetime vectors. The histogram
bins may be customized through the breaks
argument of an
implicit call to hist()
.
library(shiny)
library(histoslider)
<- rnorm(100)
numerics <- sample(
dates seq(as.Date('2020-01-01'), as.Date('2030-01-01'), by = "1 month"),
size = 500, replace = TRUE
)
<- sample(
datetimes seq(as.POSIXct('2020-01-01 00:01'), as.POSIXct('2030-01-01 00:01'), by = "1 month"),
size = 500, replace = TRUE
)
<- bslib::page_fixed(
ui input_histoslider("numeric", "Numeric", numerics, start = -1, end = 1),
input_histoslider("date", "Date", dates, breaks = 15),
input_histoslider("datetime", "Date Time", datetimes),
verbatimTextOutput("values")
)
<- function(input, output) {
server $values <- renderPrint({
outputstr(list(
numeric = input$numeric,
date = input$date,
datetime = input$datetime
))
})
}
shinyApp(ui, server)
An input_histoslider()
can also be updated
programmatically via update_histoslider()
. For example
usage, see the inst/examples
folder.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.