[R] How to quieten axis() for Sweave: avoid echoing NULL?

2005-01-02 Thread Andrew Robinson
Dear R-community, I'm using Sweave to produce reports. The reports require the axis command. When I run axis the program returns NULL as well as creating the axis. plot(1:4, rnorm(4), axes=FALSE) axis(1, 1:4, LETTERS[1:4]) NULL So, my Sweave tex files have \begin{Schunk}

Re: [R] How to quieten axis() for Sweave: avoid echoing NULL?

2005-01-02 Thread Ulises M. Alvarez
Hi! The following works for me: \begin{figure} \centering fig1.R,fig=true,echo=false= plot(1:4, rnorm(4), axes=FALSE) axis(1, 1:4, LETTERS[1:4]) @ \caption{Plot test} \label{fig:1} \end{figure} I'm using R 2.0.1 on an i686 with GNU/Linux Ubuntu 4.10. Andrew Robinson wrote: Dear R-community, I'm

Re: [R] How to quieten axis() for Sweave: avoid echoing NULL?

2005-01-02 Thread Peter Dalgaard
Andrew Robinson [EMAIL PROTECTED] writes: Dear R-community, I'm using Sweave to produce reports. The reports require the axis command. When I run axis the program returns NULL as well as creating the axis. plot(1:4, rnorm(4), axes=FALSE) axis(1, 1:4, LETTERS[1:4]) NULL So,

[R] Black and white graphics and transparent strip panels with lattice under Sweave

2005-01-02 Thread Frank E Harrell Jr
What is the most elegant way to specify that strip panels are to have transparent backgrounds and graphs are to be in black and white when lattice is being used with Sweave? I would prefer a global option that stays in effect for multiple plots. If this is best done with a theme, does anyone

Re: [R] Black and white graphics and transparent strip panels with lattice under Sweave

2005-01-02 Thread Deepayan Sarkar
On Sunday 02 January 2005 19:40, Frank E Harrell Jr wrote: What is the most elegant way to specify that strip panels are to have transparent backgrounds and graphs are to be in black and white when lattice is being used with Sweave? I would prefer a global option that stays in effect for

Re: [R] Black and white graphics and transparent strip panels with lattice under Sweave

2005-01-02 Thread Frank E Harrell Jr
Deepayan Sarkar wrote: On Sunday 02 January 2005 19:40, Frank E Harrell Jr wrote: What is the most elegant way to specify that strip panels are to have transparent backgrounds and graphs are to be in black and white when lattice is being used with Sweave? I would prefer a global option that stays

Re: [R] subsetting within a function

2005-01-02 Thread Pamela McCaskie
Thankyou for your help with subsetting within a function. I have now tried to apply the same theory in the framework of an lme as follows: fit1.lme - eval(substitute(lme(fixed=fixed, data=dataframe, random=random, correlation=corCAR1(form= corr), na.action=na.omit,

[R] matrix and error in points, plot ?

2005-01-02 Thread Patrick Giraudoux H
Hi, Would a specialist of the point or plot functions try the following: mat-matrix(c(1.836767,4.025989,0.6396777,0.376),ncol=2) plot(mat) points(mat[1,],col=red) ..A lag appears on x for mat [1,1] between the two displays. I wonder if this example may be due to a bug or to the mis-use of a