shinygalleryからこのコードを借りていくつか変更を加えました。基本的にはfluidPage
が使用されます。 flexdashboard
を使用して同じことをやり直すことに興味があります。私はflexdashboard userguideを通過しました。 しかし、そのウェブサイトの記述はいくつかのrmarkdownまたはswave形式ですか?私はそれに精通していません。ですから、マークダウンやスウィーブなしでこの例のflexdashboardバージョンを見ることができれば、簡単に別のコンポーネントに関連させてビルドすることができます。任意のヒントやポインタが評価されている人々です。フレックスダッシュボードテンプレートを使用して光沢を再現
library(shiny)
ui = shinyUI(fluidPage(
mainPanel(
tabsetPanel(
tabPanel("Plot",plotOutput("plot1"),plotOutput("plot2")),
tabPanel("Summary",verbatimTextOutput("summary")),
tabPanel("Table",DT::dataTableOutput("table"))
))))
server = shinyServer(function(input, output, session) {
output$plot1 <- renderPlot({
plot(cars)
})
output$plot2 <- renderPlot({
plot(iris)
})
output$summary <- renderPrint({
summary(cars)
})
output$table <- DT::renderDataTable({
DT::datatable(cars)
})
})
shinyApp(ui, server)
ありがとうAndrew氏は、何らかの理由で、最後のタブでデータテーブルが開かれていないことに感謝しています。私はこれを掘り下げます。 –
Hm。うん、それは私のマシンで働いていた –
セットアップセクションで 'ライブラリ(DT)'が必要な場合があります。しかしこれは@missyが提起した問題([flexdashboardの問題])(https://github.com/rstudio/flexdashboard/issues/28)のようです。 – micstr