1

を使用してデータ フレームから R Markdown でいくつかのテーブルを生成しましたkableが、テーブルはポートレート ページには大きすぎます。というわけで、ニットのpdfで縦向きを横向きに変えようとしています。問題は、表にキャプションや脚注がない場合にのみ機能することです。これを簡単に変更する方法はありますか?

コードでは、これまでに試したことをすべて示します。

header-includes: 

  \usepackage{pdflscape}

  \usepackage{lscape}

  \usepackage{rotating}


\begingroup

\begin{landscape}

\begin{sidewaystable}

```{r comment='1', echo=FALSE, results='asis',}

load(file = "Data/VPNCondition.RData")
kable(VPNCondition, format="latex",booktabs=TRUE, 
      caption="Distribution of subjects between conditions and trials") %>%
  kableExtra::landscape() %>%
  footnote(general=c('This table shows the breakdown of the experimental groups.',
                     'These subjects were able to survive all claims and exclusion criteria of the pre-analysis',
                     'and preparation of the data and are included in the data analysis.')) %>%
  kable_styling(bootstrap_options="basic", font_size=14, full_width=FALSE,
                latex_options=c("scale_down"))
```
\endgroup
\end{landscape}
\end{sidewaystable}
4

0 に答える 0