R/Shiny/bs4Dash의 기초 ⑨
수평한 Card 구현
fluidRow() 에서 각 bs4Card() 의 width의 합계가 12가 되도록(듯이) 구현.
library(shiny)
library(bs4Dash)
ui <- bs4DashPage(
  navbar = bs4DashNavbar(),
  sidebar = bs4DashSidebar(),
  body = bs4DashBody(
    fluidRow(
      bs4Card(
        plotOutput(outputId = "a"),
        inputId = "a",
        title = "a",
        status = "primary",
        width = 3
      ),
      bs4Card(
        plotOutput(outputId = "b"),
        inputId = "b",
        title = "b",
        status = "warning",
        width = 5
      ),
      bs4Card(
        plotOutput(outputId = "c"),
        inputId = "c",
        title = "c",
        status = "secondary",
        width = 4
      )
    )
  ),
  controlbar = bs4DashControlbar(),
  footer = bs4DashFooter(),
  title = "yono2844"
)
server <- function(input, output, session) {
  output$a <- renderPlot(expr = {
    hist(iris$Sepal.Length)
  })
  output$b <- renderPlot(expr = {
    hist(iris$Sepal.Width)
  })
  output$c <- renderPlot(expr = {
    hist(iris$Petal.Length)
  })
}
shinyApp(ui = ui, server = server)
 
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(R/Shiny/bs4Dash의 기초 ⑨), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/yono2844/items/b534ca64f19661c19197
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
library(shiny)
library(bs4Dash)
ui <- bs4DashPage(
  navbar = bs4DashNavbar(),
  sidebar = bs4DashSidebar(),
  body = bs4DashBody(
    fluidRow(
      bs4Card(
        plotOutput(outputId = "a"),
        inputId = "a",
        title = "a",
        status = "primary",
        width = 3
      ),
      bs4Card(
        plotOutput(outputId = "b"),
        inputId = "b",
        title = "b",
        status = "warning",
        width = 5
      ),
      bs4Card(
        plotOutput(outputId = "c"),
        inputId = "c",
        title = "c",
        status = "secondary",
        width = 4
      )
    )
  ),
  controlbar = bs4DashControlbar(),
  footer = bs4DashFooter(),
  title = "yono2844"
)
server <- function(input, output, session) {
  output$a <- renderPlot(expr = {
    hist(iris$Sepal.Length)
  })
  output$b <- renderPlot(expr = {
    hist(iris$Sepal.Width)
  })
  output$c <- renderPlot(expr = {
    hist(iris$Petal.Length)
  })
}
shinyApp(ui = ui, server = server)
Reference
이 문제에 관하여(R/Shiny/bs4Dash의 기초 ⑨), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/yono2844/items/b534ca64f19661c19197텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)