isubirana / compareGroups

R package to easily build publication-ready univariate or bivariate descriptive tables from a data set.
https://isubirana.github.io/compareGroups/
33 stars 14 forks source link

Using compareGroups tables in Rmarkdown to PDF #21

Open kambanane opened 3 years ago

kambanane commented 3 years ago

Is there any good way to use tables from compareGroups with Rmarkdown for PDF?

  1. They are usually so wide they get cut off.
  2. Is there a way to change the fonts?
  3. Categorical variables are fully left justified.

Do you know of any things that other people might have tried?

isubirana commented 3 years ago

By now, it is not possible to fully customize the descriptive tables when exporting to PDF by compareGroups package. In order to try to improve this issues, could you provide an example showing the points you request? Thanks.

kambanane commented 3 years ago

ok, I will find another way then. It would be great if it becomes possible sometime in the future. thanks

isubirana commented 3 years ago

Ok. We will try to add some issues to improve the table customization when exporting to PDF.

kambanane commented 3 weeks ago

I see that this is closed, has something been done to solve this problem? If so, could I have some details?

isubirana commented 3 weeks ago

Sorry for not giving news about it and for closing the topic. Since then, we haven't been able to make much progress on the points you required. Just say that you can decrease or increase the font size using the size argument from export2md or export2pdf functions. I hope this can fix partially the problem of wide tables.

Regards,

Isaac.