-
-
Save cryoguy/6f2b826cd7c9467b58ad324d6b0c38dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
# Define UI for miles per gallon application | |
shinyUI(pageWithSidebar( | |
# Application title | |
headerPanel("Miles Per Gallon"), | |
# Sidebar with controls to select the variable to plot against mpg | |
# and to specify whether outliers should be included | |
sidebarPanel( | |
selectInput("variable", "Variable:", | |
list("Cylinders" = "cyl", | |
"Transmission" = "am", | |
"Gears" = "gear")), | |
checkboxInput("outliers", "Show outliers", FALSE) | |
), | |
# Show the caption and plot of the requested variable against mpg | |
mainPanel( | |
h3(textOutput("caption")), | |
plotOutput("mpgPlot") | |
) | |
)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment