Skip to content

Commit

Permalink
tweak DT output for membership and add DT output for quantified map
Browse files Browse the repository at this point in the history
  • Loading branch information
atusy committed Oct 15, 2019
1 parent 8550dda commit da4b101
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion R/shiny-server-.R
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ shiny_server <- function(input, output, session) {
shiny::req(cluster_out())
DT(
cluster_out(), digits = 2,
options = DT_options()[c("scrollY", "scrollCollapse")]
options = DT_options(paging = TRUE, pageLength = 100)
)
})
output$cluster_centroid <- DT::renderDT({
Expand All @@ -275,6 +275,11 @@ shiny_server <- function(input, output, session) {
saving = FALSE
)
})

output$qmap_dt <- DT::renderDT({
shiny::req(qmap_out())
DT(qmap_out(), digits = 2, options = DT_options(paging = TRUE, pageLength = 100))
})

qmap_elint <- shiny::reactive(setdiff(names(qmap_out()), c("x", "y")))

Expand Down
4 changes: 2 additions & 2 deletions R/shiny-ui-quantify.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ shiny_ui_quantify <- function() {
)
),
tab_panel("Histogram", plotOutput("qmap_histogram", height = "100%")),
tab_panel("Summary", DTOutput("qmap_summary", height = "100%")
)
tab_panel("Summary", DTOutput("qmap_summary", height = "100%")),
tab_panel("Raw", DTOutput("qmap_dt", height = "100%"))
)
)
)
Expand Down

0 comments on commit da4b101

Please sign in to comment.