Search code examples
rgt

Changing table hline options in R with gt


I am using the gt package to create tables. According the the documentation (see here) there are table options to adjust hline details (e.g., table_body.hlines.style, table_body.hlines.width, etc.). The problem is that there are no value options provided. What are the potential style types to which table_body.hlines.style can be set? I have searched both the gt documentation (which is vast) and on forums but can find no answers.

Edit: I am outputting the table to a .tex file via gtsave, if that matters.


Solution

  • In gt(), the line style the options are "solid" (the default), "dashed", or "dotted".

    Weight is given in pixels. The default is 1 pixel.

    The color can be defined with a color name or with a hexadecimal color code. The default is "#000000" (black).