0

The final aim is to show all the columns and rows in a page without scrolling, even making the table smaller (like zoom in). Because I'd like to get a bird's-eye view of this table, without caring about numbers in table. Thank you.

one step can be show colnames vertically in shiny-based DT::datatable as they take lots of space, though I still do not know how to implement it.

Code:

library(shiny)
library(ggplot2)
shinyApp(
ui = fluidPage(DT::dataTableOutput('tbl')),
server = function(input, output) {
    output$tbl = DT::renderDataTable(
        DT::datatable({cbind(mpg, mpg, mpg)}, 
             options = list(paging = FALSE))

    )
}
)
SymbolixAU
  • 25,502
  • 4
  • 67
  • 139
Zhilong Jia
  • 2,329
  • 1
  • 22
  • 34
  • Maybe [this](http://stackoverflow.com/a/31923374/5894457) link could help you. – SBista Mar 27 '17 at 08:46
  • @SBista it seems works for columns only. Thank you. My final objective is to show it as a heatmap with the ability reordering any column. – Zhilong Jia Mar 27 '17 at 13:04

0 Answers0