RStudio Shiny renderDataTable font size
You can put dataTableOutput("tableName")
inside of div()
and change the font using the style
parameter. style
takes CSS arguments.
For example, if have this...
dataTableOutput("tableName")
you can change it like this...
div(dataTableOutput("tableName"), style = "font-size:80%")
to make the font size 20% smaller.
Shrink DT::dataTableOutput Size
Try adding width: 75%
to your style
parameter of the div
:
div(DT::dataTableOutput("table"), style = "font-size: 75%; width: 75%")
How to change the font color of a DT table based on another matrix in R
You could just use styleInterval
like this:
formatStyle(columns = 1:10, valueColumns = 11:20, color = styleInterval(c(-1e-10, 1e-10), c('red', 'blue', 'green')))
Here we use two breaks at -1e-10
and +1e-10
. Everything in between, so basically the zeros, will be blue.
Related Topics
Automatic Documentation of Datasets
How to Include Rmarkdown File in R Package
Why Does Rendering a PDF from Rmarkdown Require Closing Rstudio Between Renders
Why Is Stat = "Identity" Necessary in Geom_Bar in Ggplot
How to Plot Logit and Probit in Ggplot2
Mutating Multiple Columns in a Data Frame Using Dplyr
Change Internal Function of a Package
Add Textbox to Facet Wrapped Layout in Ggplot2
R Xts: Generating 1 Minute Time Series from Second Events
Fast Replacing Values in Dataframe in R
Conditionally Display Block of Markdown Text Using Knitr
Increase the API Limit in Ggmap's Geocode Function (In R)
Differencebetween These Two Comparisons
Defer Code to End of Document in Knitr