vincentarelbundock / tinytable

Simple and Customizable Tables in `R`
https://vincentarelbundock.github.io/tinytable
GNU General Public License v3.0
211 stars 18 forks source link

Insert gap between rows/columns #347

Closed J-Moravec closed 1 month ago

J-Moravec commented 1 month ago

Perhaps this already exists, but I can't find it in the documentation.

I would like to insert gap between rows/columns.

For instance, to make grouped columns / rows more distinct.

User case

I grouped bunch of columns and have them nice background coloured style. The issue here is that the columns are next to each other, and since there is no gap in the coloured square, it is hard to figure out to which group they belong to. I had to solve this manually by inserting a dummy column in-between. And gave up with cells.

vincentarelbundock commented 1 month ago

I agree that this would be a useful feature.

Closing this issue as it is a duplicated of this one: https://github.com/vincentarelbundock/tinytable/issues/319

Please keep the discussion going there.

vincentarelbundock commented 2 weeks ago

Added new theme_tt("spacing") option:

https://github.com/vincentarelbundock/tinytable/commit/46cbed793156c7f30ded6fefc0a5ce7909e37f95