[R-sig-eco] Displaying estimators from specpool or estimateR
Martin Unterseher
martin.unterseher at uni-greifswald.de
Fri Jan 21 23:29:10 CET 2011
Dear all,
it also works without echo=false:
\begin{figure}
<<fig=true>>=
pool.test<-poolaccum(test)
print(plot(pool.test))
@
\end{figure}
Essential was the missing print() command
Best Martin
On 21 Jan 2011, at 18:54, Jari Oksanen wrote:
> On 21/01/11 17:02 PM, "Martin Unterseher"
> <martin.unterseher at uni-greifswald.de> wrote:
>
>> \begin{figure}
>> <<fig=true>>=
>> pool.test<-poolaccum(test)
>> plot(pool.test)
>> @
>> \end{figure}
>
> Martin,
>
> You should set echo=false in Sweave so that your figure environment
> is not
> polluted with the echoed commands, and since you use lattice
> graphics, you
> must print() it. This works:
>
> \begin{figure}
> <<fig=true,echo=false>>=
> pool.test<-poolaccum(test)
> print(plot(pool.test))
> @
>
> Cheers, jari oksanen
>
__________
Dr. Martin Unterseher
Universität Greifswald
Institut für Botanik und Landschaftsökologie
Lehrstuhl für Allgemeine und Spezielle Botanik
Grimmer Str. 88
17487 Greifswald
Tel. 03834 / 864184
Fax. 03834 / 864114
http://www.botanik.uni-greifswald.de/100.html
http://dgfm-ev.de/index.php?id=munterseher
More information about the R-sig-ecology
mailing list