inst/shiny-demo/data-set-montecarlo/ui.R

library("shiny")
library("vegawidget")

ui_slider_n <-
  shiny::sliderInput(
    "n_points",
    label = "Number of points",
    min = 1,
    value = 100,
    max = 5000,
    step = 1,
    sep = "",
    animate = TRUE
  )

ui <- fluidPage(
  titlePanel("Vegawidget: Monte-Carlo simulation of pi"),
  sidebarLayout(
    sidebarPanel(
      ui_slider_n
    ),
    mainPanel(
      vegawidgetOutput("chart")
    )
  )
)

Try the vegawidget package in your browser

Any scripts or data that you put into this service are public.

vegawidget documentation built on Sept. 3, 2023, 9:07 a.m.