Gt: Support for PDF output

Created on 6 Dec 2018  Â·  2Comments  Â·  Source: rstudio/gt

I would like to requires the option of outputting tables in PDF format. That would be really useful for anything that needs to be put into print (where vector graphics is needed)

[2] Intermediate [3] High [3] High ★ Enhancement

Most helpful comment

Excellent idea! Will try to get this going in the coming weeks. I'm also thinking that there should be a broad range of output graphic formats (both raster and vector-based).

All 2 comments

Excellent idea! Will try to get this going in the coming weeks. I'm also thinking that there should be a broad range of output graphic formats (both raster and vector-based).

FWIW gridExtra has a grid.table() function, which can be displayed using standard graphics devices. It's quite limited in terms of formatting; the only benefit that I can see would be in mixing content on a graphic, e.g. a table as an inset in a plot, etc.
I haven't looked at the code for gt but in theory it would be possible to translate its table description into several sub-tables, each rendered as an individual tableGrob, and combine them together.

https://cran.r-project.org/web/packages/gridExtra/vignettes/tableGrob.html

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jenniferp96 picture jenniferp96  Â·  4Comments

rich-iannone picture rich-iannone  Â·  4Comments

mine-cetinkaya-rundel picture mine-cetinkaya-rundel  Â·  4Comments

vincentarelbundock picture vincentarelbundock  Â·  4Comments

jestarr picture jestarr  Â·  3Comments