dcomtois / summarytools

R Package to Quickly and Neatly Summarize Data
504 stars 77 forks source link

Graph alignment in `dfSummary` #129

Closed statzhero closed 3 years ago

statzhero commented 3 years ago

I'm getting some weird alignments with the graph as shown below. I'm using the following command within a R markdown chunk (results = "asis") document:

summarytools::dfSummary(dta, 
     plain.ascii = FALSE, style = 'grid', graph.magnif = 0.75, valid.col = FALSE, tmp.img.dir = "/tmp")

> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.6

Screen Shot 2020-10-08 at 09 20 21

dcomtois commented 3 years ago

Is this the version from CRAN or from GitHub?

Try these:

dcomtois commented 3 years ago

I realize now that what you're showing is a PDF rendered output. This is a known issue. If you find the solution pls share!