dcomtois / summarytools

R Package to Quickly and Neatly Summarize Data
522 stars 78 forks source link

Specify column widths #57

Closed dcomtois closed 5 years ago

dcomtois commented 5 years ago

Especially in the context of rendering html for markdown; right now the size of graphs responds to windows size and the graph.magnif parameter doesn't enforce actual wanted size.

dcomtois commented 5 years ago

Please note that if the column widths are not taken into account, it's because the width of the table is too great; you'll need to remove a column, maybe too; use for instance

view(dfSummary(tobacco, labels.col = FALSE, valid.col = FALSE,
               col.widths = c(40,  # varnum
                              80,  # varnames
                              185, # stats/Values 
                              120, # freqs
                              120, # graph
                              16   # missing 
                              )))
dcomtois commented 5 years ago

Update: dfSummary() now shows real (non-ascii) graphs in rmarkdown (still in dev-current). For example, try

```{r, results='asis'}
dfSummary(tobacco, style = "grid", plain.ascii = FALSE, graph.magnif = 0.82)