Questions tagged [huxtable]

44 questions
1
vote
0 answers

Arranging huxtable with gridExtra

I need to use the gridExtra package to get the page view I want in my project. I created the tables in the project with huxtable and created a theme myself. I used the gridExtra package because I want these tables to be grouped as I want and…
Pinar
  • 33
  • 3
1
vote
1 answer

export a huxtable data and a ggplot into one excel file

I'm asking if I could export from R, a huxtable dataset in one sheet and a plot from ggplot2 in another sheet, and in the same excel file? wb <- createWorkbook() addWorksheet(wb, sheetName = "Frequencies") addWorksheet(wb, sheetName =…
Ruser-lab9
  • 193
  • 1
  • 12
1
vote
1 answer

Using a custom `glance` method in huxtable::huxreg()

I am looking for a way to report the number of groups alongside the number of observations using huxtable::huxreg to create a table of results of a multilevel model predicted with lmer(). I can write a custom glance method that overwrites the…
mikebader
  • 1,075
  • 3
  • 12
1
vote
1 answer

Row height in regression models with jtools in R Markdown

I would like to adjust the row padding in a jtools regression table. I tried set_row_height since I read that the underlying structure is a huxtable. But I'm unsure, and it didn't work. --- title: "Untitled" author: "Name" date: "10 5 2021" output:…
Marco
  • 2,368
  • 6
  • 22
  • 48
1
vote
0 answers

LaTeX error creating Huxtable (! LaTeX Error: File `adjustbox.sty' not found.)

I'm creating a PDF report with Huxtable in R. The LaTeX log file returns this error message: ! LaTeX Error: File `adjustbox.sty' not found. Following instructions in Huxtable FAQ, I realized missing LaTeX dependencies. However, updating these…
viva
  • 11
  • 1
1
vote
0 answers

RMD to DOCx , Can't render {=openxml} chunks inside table cells like huxtable and other?

HOW get rendered openxml chunks inside cells of tables in RMD to DOCx ? I just get same openxml text (mdt) inside tables instead of content .. any suggestions please? xml_test.RMD: Updated Test RMD code : --- output: word_document: …
den.ts
  • 103
  • 1
  • 8
1
vote
2 answers

How do I embed formatted R code in table cells in rmarkdown?

I am working on a vignette for an R package where I want to show how to do the same thing in two R packages. My preferred approach would be to include several tables, where I can show the appropriate code next to each other, something like so: I…
Steve G. Jones
  • 325
  • 2
  • 10
0
votes
0 answers

How to change the border style of a huxtable?

I am trying to set the right border of col = 1 of my huxtable. I can get the border to appear, but it remains "dashed" despite my attempts to change it to "solid". Example: library(dplyr) library(huxtable) set.seed(72723) df <- data.frame(ID =…
Reid
  • 3
  • 3
0
votes
0 answers

Huxtable automatically removes 0 in the cell (for example "H01" to "H1")

How could I keep the 0? In a for loop, I have # the_hux is some huxtable by as_hux_table() the_hux[1, 2] <- i print(i) print(the_hux[1, 2]) and this is the output: [1] "H01" H1 …
yyyyp
  • 1
  • 1
0
votes
0 answers

docx output in huxtable ignores set_font setting

Outputting a huxtable (huxtable version 5.4.0) to a docx seems to ignore the font that has been set via huxtable::set_font(). On my system I get an output in font "DejaVu Sans". library(magrittr) library(huxtable) ht <- huxtable(column1 = 1:5, …
Patrick
  • 742
  • 7
  • 19
0
votes
0 answers

Changing Table Height with huxtable Package in R Markdown

I want to decrease the height of a table to half of its size. I tried to use the function height and row_height it did not work. If I decrease the font size and set all padding to zero it helps but then when I try to decrease the row height nothing…
0
votes
0 answers

How to split table into multiple pages while keep the categories in the first column with huxtable/gt?

I am generating a summary table and output to an rtf file. In this table, the first column is the categories, and the other columns are the counts of different groups. I would like to split this wide table into two pages but keep the first column on…
Charlie
  • 1
  • 1
0
votes
0 answers

tbl_summary (gtsummary) shows no small caps in Huxtables

I'm using tbl_summary to produce tables for LaTeX. The combination with HuxTables workes fine so far. Unfortunately the LaTex export does not small caps. The png-version does. I would like to have them included for the LaTeX-Printout. Do you have an…
Roman
  • 1
  • 3
0
votes
0 answers

Use latex math in coef names huxtable

I am using quarto to generate an HTML report. I have a regression table that I created using huxtable library. I wanted to know how can I use math notation for the name of the coefficients. here is the code for the table: huxtable::huxreg( …
Babak Fi Foo
  • 926
  • 7
  • 17
0
votes
2 answers

How to change digits of numbers in the export_summs() table

I get the regression output table using export-summs() installed in the package called jtools and huxtable. My code is: export_summs(model1, model2, scale = TRUE) and ──────────────────────────────────────────────────── …
jck21
  • 751
  • 4
  • 16