library(flexdashboard) library(lasertrapr) library(ggplot2) library(dplyr) library(cowplot) library(DT)
d <- params$rv$summary_data d$conditions <- factor(d$conditions, levels = params$factor_order) d %>% dplyr::mutate(across(where(is.numeric), round, digits = 2)) %>% dplyr::select( "Conditions" = conditions, "Step Size (nm)" = displacement_avg, "SE Step" = displacement_se, "Force (pN)" = force_avg, "SE Force" = force_se, "Time On (ms)" = time_on_avg, "SE Ton" = time_on_se, 'Median Time-on' = time_on_median, "Time Off (ms)" = time_off_avg, "SE Toff" = time_off_se, "No. Events" = num_events, "Minutes Collected" = minutes ) %>% dplyr::arrange(Conditions) %>% DT::datatable( extensions = 'FixedColumns', options = list( dom = 't', scrollX = TRUE, fixedColumns = list(leftColumns = 2) ) )
params$rv$ggstep
params$rv$ggforce
params$rv$ggton
params$rv$ggoff
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.