Displaying 1 result from an estimated 1 matches for "wisiwis".
Did you mean:
wikiis
2006 Aug 20
1
issues with Sweave and inclusion of graphics in a document
...numeric(n);
Y[1]<- Z[1];
for (i in 2:n) Y[i]<- alpha*Y[i-1]+Z[i];
return(Y)
}
@
<<label=ar.1>>=
# a long AR process is best viewed in a wide window:
windows(width=20, height=5)
sp<- make.ar.1(alpha=.5, n=800)
plot(sp, type="l", col="blue")
# WISIWIS: What I See Is What I Save ;)
savePlot("ar",type="pdf")
@
\begin{figure}
\begin{center}
% imporantly, by saving the plot i have direct control over graphics in LaTeX,
% and i can fine-tune the the graphics placement as much as i want:
\includegraphics[width=14.5cm]{./ar.pdf...