Customization & Themes

dtsmartr supports deep interface customization through dtsmartr_options(). Developers can toggle UI panels, control access to analytical utilities, customize missing cell representations, and switch between light and dark themes.

1. Visual Color Themes (Dark Mode)

dtsmartr features a modern, premium dark palette designed for clinical environments and night shifts.


2. Optional UI Feature Toggles

You can enable or disable individual layout elements depending on the context:


3. Custom Missing Value Strings (na_string)

Control how missing/null values are represented. Cells containing NA or null will render as italicized, muted-gray cells:


4. Pre-Hidden Columns (hidden_columns)

Specify a vector of column names to hide by default on initial rendering. Users can still show them using the column picker (if enabled):


5. Grid Layout & Row Densities (header_density and row_density)

Configure the initial layout density programmatically:


6. Live Theme & Customization Example

Below is a live interactive grid rendering in Dark Mode with pre-hidden variables (hp, vs), custom missing cell markers (na_string = "—"), and compact density preset:

library(dtsmartr)

dtsmartr(
  data = mtcars,
  options = dtsmartr_options(
    theme           = "dark",
    hidden_columns  = c("hp", "vs"),
    na_string       = "—",
    header_density  = "minimal",
    row_density     = "compact"
  )
)