sweave;数字不便携

时间:2014-02-12 15:30:29

标签: r lattice sweave

我是sweave和乳胶的新手,我在Latex中导入情节图时遇到问题。

我使用了xyplot()包中的lattice。我在代码中添加了print(),但是当我sweave时,R中有警告,说“文件名'xxxx'不可移植。

我的代码是这样的:

\begin{figure}[H]

\begin{center}

<< fig=TRUE,echo=FALSE>>=

plot1=xyplot(Percentage~Age,type="b", group=Consonant.Type,data=m1,main="Lenition of /sm, sp, st, sg/ vs. others ",auto.key =list(lines = TRUE))

print(plot1)

@

\end{center}

\caption{Lenition of /sm, sp, st, sg/ vs. others by age}

\end{figure}

0 个答案:

没有答案
相关问题