I'm a newbie to sweave
and latex and I have a problem importing a plot figure in Latex.
I used the xyplot()
from the lattice
package. I did include print()
in the code, but when I sweave
, there is warning in R, saying "file name 'xxxx' is not portable.
My code is like this:
\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}