试图了解R

时间:2018-09-13 19:27:42

标签: r function shiny

# Define UI for app that draws a histogram ----
ui <- fluidPage(

# App title ----
titlePanel("Hello Shiny!"),

# Sidebar layout with input and output definitions ----
sidebarLayout(

# Sidebar panel for inputs ----
sidebarPanel(

  # Input: Slider for the number of bins ----
  sliderInput(inputId = "bins",
              label = "Number of bins:",
              min = 1,
              max = 50,
              value = 30)

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

以上代码是从here复制而来的。 有人可以澄清以下有关此代码的疑问:

  • fluidPage是一个函数吗?
  • titlePanel,sidebarLayout,mainPanel是FluidPage函数中的另一个函数吗?
  • fluidPage中的函数是一种强制参数,又接受参数或函数吗?

以上问题可能不正确。如果我错了,请纠正我。如果我错了,请您在这里描述功能中这些功能的工作方式

0 个答案:

没有答案