#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
#    https://shiny.posit.co/
#

library(shiny)

# Define UI for application that draws a histogram
fluidPage(

    # Application title
    titlePanel("Penguins"),

    # Sidebar with a slider input for number of bins
    sidebarLayout(
        sidebarPanel(
          checkboxInput("checkbox", "Do you want to see the plot?", FALSE),
          selectInput( 
            "island", 
            "Which island do you want to see?", 
            unique(dat$island)
          )
        ),

        # Show a plot of the generated distribution
        mainPanel(
            plotOutput("mygraph")
        )
    )
)
