-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
29 lines (28 loc) · 969 Bytes
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
library(shiny)
summary(mtcars$wt)
shinyUI(fluidPage(
titlePanel("Prediction of miles per US gallon"),
sidebarLayout(
sidebarPanel(
helpText("Prediction of the miles per US gallon based on horse power and car's weight"),
helpText("Parameters:"),
sliderInput(inputId = "hp",
label = "Amount of horse power",
value = 130,
min = 52,
max = 335,
step = 1),
sliderInput(inputId = "wt",
label = "The weight of the car (lb/1000)",
value = 3.2,
min = 1.5,
max = 5.5,
step = 0.5)
),
mainPanel(
htmlOutput("pText"),
htmlOutput("pred"),
plotOutput("Plot", width = "50%")
)
)
))