summarytools icon indicating copy to clipboard operation
summarytools copied to clipboard

dfSummary: histogram x-axis tick mark labels?

Open jarbet opened this issue 2 years ago • 1 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

jarbet avatar Jan 24 '23 19:01 jarbet

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.

dcomtois avatar Aug 20 '23 11:08 dcomtois