![](/img/trans.png)
[英]r markdown latex compiling error (Undefined color `gray!6') with function in jtools package
[英]Row height in regression models with jtools in R Markdown
我想調整jtools
回歸表中的行填充。 我嘗試set_row_height
,因為我讀到底層結構是huxtable
。 但我不確定,它沒有用。
---
title: "Untitled"
author: "Name"
date: "10 5 2021"
output: html_document
---
## R Markdown
```{r, warning=FALSE, message=FALSE}
mymodel <- lm(mpg ~ ., data=mtcars)
library(tidyverse)
library(jtools)
library(huxtable)
export_summs(mymodel, scale = TRUE) %>%
set_font_size(6) %>% # working in markdown html
set_row_height(., everywhere, 0.1) # not working in html
```
它在 RStudio 中看起來不錯,但在 Markdown 中使用了大量的行空間。 set_font_size
有效,但set_row_height
無效。
最后,行高調整與set_tb_padding
一起使用。 我無法復制為什么它一開始就不起作用。 set_row_height
需要 CSS/LaTeX 值,即set_row_height("4cm")
。 我不能將行高減小到合理的大小,但可以增加行高。
title: "Jtools and Huxtable"
author: "Name"
date: "10 5 2021"
output: html_document
---
## R Markdown
```{r, warning=FALSE, message=FALSE}
mymodel <- lm(mpg ~ ., data=mtcars)
library(tidyverse)
library(jtools)
library(huxtable)
export_summs(mymodel, scale = TRUE) %>%
set_font_size(10) %>%
set_tb_padding(1)
```
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.