小编Mar*_*nts的帖子

在Sweave中将选项[keepaspectratio = true,scale = 0.75]添加到\ includegraphics {}

我有以下R代码

<<Q1b1, fig=TRUE>>=  
qqnorm(resid(model1), main=NULL)
@
Run Code Online (Sandbox Code Playgroud)

和我想的选项[keepaspectratio =真,标度= 0.75]添加到\ includegraphics {}呼叫,使得上述R代码块生成

\begin{figure}[ht]
\caption{}
\begin{center}
\includegraphics[keepaspectratio=true, scale = 0.75]{filename.pdf}
\label{fig:1}
\end{center}
\end{figure}
Run Code Online (Sandbox Code Playgroud)

我知道你可以使用\ {SweaveOpt宽度= X,HEIGHT = Y}指定的宽度和高度,但我想说明的规模和有它保持身材的宽高比时系统产生的.

是否有捷径可寻?

谢谢

r sweave

5
推荐指数
1
解决办法
9235
查看次数

标签 统计

r ×1

sweave ×1