dcomtois / summarytools

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

dfSummary: histogram x-axis tick mark labels? #181

Open jarbet opened 1 year ago

jarbet commented 1 year ago

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

dcomtois commented 1 year ago

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.