dcomtois / summarytools

R Package to Quickly and Neatly Summarize Data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dfSummary: histogram x-axis tick mark labels?

jarbet opened this issue · comments

dfSummary creates histograms for continuous variables. However, currently the xaxis below the histogram does not contain any tick mark labels, so it is unclear which values correspond to the bars in the histogram.

Would it be possible to add an option to show xaxis tick mark labels? Something like this:

data(mtcars)
hist(mtcars$mpg)

Screen Shot 2023-01-24 at 11 20 48 AM

Not impossible, but it would require a lot of fine-tuning to ensure the tickmarks/labels are not aesthetically damning. Maybe a proof-of-concept (create a dfSummary with such histograms using an image editor) would be useful...

Further development is not on the radar on my end, at least for a while, but if anyone wants to have a go at it, help is always welcome.