Skip to content
Back to formatted view

Raw Message

Message-ID: <D332E6AC-3589-4185-8FB4-071D923CC069@uni-greifswald.de>
Date: 2011-01-21T22:29:10Z
From: Martin Unterseher
Subject: Displaying estimators from specpool or estimateR
In-Reply-To: <C95F9500.14DEB%jari.oksanen@oulu.fi>

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