【发布时间】:2017-08-25 07:58:04
【问题描述】:
这是我的 ui.r 代码 - 它不起作用。请帮帮我。
library(shiny)
library(plotly)
shinyUI(fluidPage(
titlePanel("Coronary Heart Disease"),
sidebarLayout(
sidebarPanel(
sliderInput("slider 1","age",15,65,42.82),
sliderInput("slider 2","trestbps",145,170,120),
radioButtons("radio", label = h2("radio buttons"),
choices = list("choices 1"= male, "choice 2"=female),
selected = male),
hr(),
fluidRow(column(2,verbatimTextOutput(value)))
),
sliderInput("slider 4","cholestrol",342,177,266),
sliderInput("slider 5","fbs",0,1,1)
),
mainPanel(
tabsetPanel(type="tabs",
tabsetPanel("instruction",
p(""),
p("this web application will calculate the chances of coronary heart disease in a person based on five variables"),
p("just change the five slider value and see the probability value changes correspondingly")
),
tabPanel("probability of having coronary heart disease (%)",h1(textOutput(pred1)))
)
)
)
)
【问题讨论】:
-
请花时间阅读如何格式化您的问题。还要指定您甚至想要实现的目标以及无法实现的目标。