如何调整Beamer乳胶上的R代码大小
我想调整我的R代码在Beamer乳胶上的大小。我有类似的东西:
\begin{frame}[fragile]
\frametitle{Application du modèle : contenu de lung}
<<echo=FALSE>>=
library(survival)
attach(lung)
head(lung)
@
\textbf{\underline{Objectif:}} construire un modèle qui vérifie les hypothèses de Cox
à partir de ce jeu de données
\end{frame}
问题是输出表从幻灯片伸出。 谢谢。
编辑:当我尝试编译代码的这一部分时
\begin{frame}{Premier modèle naïf}
<<echo=FALSE, linebreaks=TRUE>>=
library(survival)
model_1<-coxph(Surv(time,status) ~ age+factor(sex)+ph.ecog+wt.loss, data = lung)
cox.zph(model_1)
@
\textbf{\underline{Objectif:}} construire un modèle qui vérifie les hypothèses de Cox à partir de ce jeu de données
\end{frame}
,看起来像:
I would like to resize my R code output on Beamer Latex. I have something like :
\begin{frame}[fragile]
\frametitle{Application du modèle : contenu de lung}
<<echo=FALSE>>=
library(survival)
attach(lung)
head(lung)
@
\textbf{\underline{Objectif:}} construire un modèle qui vérifie les hypothèses de Cox
à partir de ce jeu de données
\end{frame}
The problem is that the output table protrudes from the slide.
Thanks.
Edit : also when i try to compile this part of code
\begin{frame}{Premier modèle naïf}
<<echo=FALSE, linebreaks=TRUE>>=
library(survival)
model_1<-coxph(Surv(time,status) ~ age+factor(sex)+ph.ecog+wt.loss, data = lung)
cox.zph(model_1)
@
\textbf{\underline{Objectif:}} construire un modèle qui vérifie les hypothèses de Cox à partir de ce jeu de données
\end{frame}
It looks like :
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在内部,此织物似乎将代码包裹在称为
kframe
的自定义环境中。您可以像这样更改此环境的字体大小:Internally this kniter thingy seems wrap the code in a custom environment called
kframe
. You can change the font size for this environment like this: