DidierMurilloF / FielDHub

FielDHub is an R Shiny design of experiments (DOE) app that aids in the creation of traditional, unreplicated, augmented and partially replicated (p-rep) designs applied to agriculture, plant breeding, forestry, animal and biological sciences.
https://didiermurillof.github.io/FielDHub/
Other
39 stars 20 forks source link

Shiny table output #10

Closed Prof-ThiagoOliveira closed 3 years ago

Prof-ThiagoOliveira commented 3 years ago

Dear authors,

I realized you have several wide tables as output in your shiny app. When a table is too wide, you can fix certain columns using the FixedColumns extension to be visible when you scroll the table horizontally. Thus, I suggest you fix the first column related to row labels (see image) and also include a scroll on the x-axis to facilitate end-user interaction with the output. You can include a scrolling row by adding in the datatable options scrollX = TRUE.

table_design

Ex.:

datatable(
  your_data, 
  extensions = 'FixedColumns',
  options = list(
    dom = 't',
    scrollX = TRUE,
    fixedColumns = TRUE
  )
)

Does this suggestion make sense to you? Best regards,

tatirri commented 3 years ago

Professor Thiago Oliveira,

We will start making the changes accordingly to the recommendations you provided. Thanks for your input. AM

DidierMurilloF commented 3 years ago

Dear Thiago,

I got your suggestions and I added the features to make the table outputs more comprehensible for the end-users. I already did the push and you can see the changes. Please, let us know if have any question! Thank You!

Best,

Didier Murillo

Prof-ThiagoOliveira commented 3 years ago

Thanks!