首页 > IT职业 > IT图书 > R包shiny开发网页--4.shiny结构模板
ui <- fluidPage( sidebarLayout( sidebarPanel(), mainPanel() ) )
library(shiny)
library(shinydashboard)
ui <- dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody()
)
server <- function(input, output) { }
shinyApp(ui, server)
header <- dashboardHeader()
sidebar <- dashboardSidebar()
body <- dashboardBody()
ui <- dashboardPage(header, sidebar, body)
server <- function(input, output) { }
shinyApp(ui, server)
ui.R
library(shiny) shinyUI(fluidPage( headerPanel(), sidebarPanel(), mainPanel()
server.R
library(shiny)
shinyServer(function(input, output) {}
作者:小洁忘了怎么分身
链接:https://www.jianshu.com/p/06f6b3dce680
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4809/viewspace-2819049/ ,如需转载,请注明出处,否则将追究法律责任。