Thank you Deepayan,
I understand the behavior of not printing out the results inside the
functions.
What I didn't know was that for xyplot() saving the plot actually
meant "save the result I see", which does not happen with plot(), in
which case my function test() works just fine if I repla
On 6/15/07, Benilton Carvalho <[EMAIL PROTECTED]> wrote:
> So, if those statements are inside a function, I have to make my
> function to have an 'echo' argument/functionality? eg.:
>
> ## begin test.R
> test <- function(n){
>y <- rnorm(n)
>x <- rnorm(n)
>z <- sample(letters[1:4], n, re
So, if those statements are inside a function, I have to make my
function to have an 'echo' argument/functionality? eg.:
## begin test.R
test <- function(n){
y <- rnorm(n)
x <- rnorm(n)
z <- sample(letters[1:4], n, rep=T)
library(lattice)
bitmap("tst.png")
xyplot(y~x|z)
dev.
On 6/15/07, Benilton Carvalho <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> it's been a while I've been trying to save a plot created via
> lattice:::xyplot
>
> if I have a file tst.R with the following code:
>
> y <- rnorm(100)
> x <- rnorm(100)
> z <- sample(letters[1:4], 100, rep=T)
> library(la
Hi everyone,
it's been a while I've been trying to save a plot created via
lattice:::xyplot
if I have a file tst.R with the following code:
y <- rnorm(100)
x <- rnorm(100)
z <- sample(letters[1:4], 100, rep=T)
library(lattice)
bitmap("tst.png")
xyplot(y~x|z)
dev.off()
and I source it, I get t