Introduction

This presentation showcases a Shiny application that displays histograms of variables from the mtcars dataset.

User Inputs

Users can select a variable and the number of bins for the histogram.

App Features

  • Dynamic histogram based on selected variable and number of bins.
  • Summary statistics of the selected variable.
library(shiny)
# Sample code snippet from the app
ui <- fluidPage(
  titlePanel("Histogram of mtcars Dataset"),
  sidebarLayout(
    sidebarPanel(
      selectInput("variable", "Variable:", choices = names(mtcars)),
      sliderInput("bins", "Number of bins:", min = 1, max = 50, value = 10)
    ),
    mainPanel(plotOutput("histPlot"), textOutput("summary"))
  )
)