This presentation showcases a Shiny application that displays histograms of variables from the mtcars dataset.
This presentation showcases a Shiny application that displays histograms of variables from the mtcars dataset.
Users can select a variable and the number of bins for the histogram.
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"))
)
)