[R] countour and poygon shading

2007-01-29 Thread J.M. Breiwick
Hi,

I have a contour plot and I want to shade a polygon (the area below a line) 
but the polygon shading wipes out the contour lines. Does anybody know how 
to shade the polygon and still see the contour lines? Thanks.

Jeff

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] .RData and UNIX

2006-10-12 Thread J.M. Breiwick
Hi,

I have been using R under Windows but have started to use R (ver. 2.3.0,) 
under Linux (linux-gnu).

I have been saving my workspace and I notice that I sometimes end up with 2 
version of the .RData file:
.RData and .Rdata. Can someone explain what is happening? I am not sure 
which one is loaded so I have ended up losing data by deleting the wrong 
file. I think the saved file should be .RData. Thank you.

Jeff

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] attach() warning message

2006-05-10 Thread J.M. Breiwick
Hi,

I am using R 2.3.0 and my .First() file has the following line which causes 
a warning:
attach(what="c:/r/jmb/.RData", pos=3)

I get the following message after .First() is loaded:

During startup - Warning message:
use of NULL environment is deprecated

Is there a simple fix that will eliminate this warning message? Thanks.

J. Breiwick

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] sprintf

2006-02-17 Thread J.M. Breiwick
Hi,

I want to use sprintf with vectors whose lengths vary.
As an example: x = c(2,4,6,10)
sprintf("%i%5f%5f%5f",x[1],x[2],x[3],x[4]) works. But if I have to compute 
the length of x within a function then I cannot list all for format codes 
and sprintf apparently will not accept just "x" - it wants one value for 
each format code as in the above example. Does anyone know a way to handle 
this? And is there a way to repeat the format code like in Fortran (e.g. 
5F4.1)? Thanks.

Jeff B.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] multiple boxplots

2005-10-28 Thread J.M. Breiwick
Hello,

I want to plot 3 boxplots [ par(mfrow=c(3,1)) ] but the first one has 8 
groups, the 2nd has 7 and the third has 6. But I the groups to line up:

 1 2 3 4 5 6 7 8
   2 3 4 5 6 7 8
  3 4 5 6 7 8

where the numbers actually refer to years. I suspect I have to manipulate 
the function bxp(). Is there a relatively simple way to do this? Thanks for 
any help.

Jeff Breiwick
NMFS, Seattle

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] nls()

2005-09-14 Thread J.M. Breiwick
Hi,

I am using nls() with the form: nls(~my.fcn(...)) because I have to 
iteratively compute the expected y values. The function my.fcn() returns 
y.obs-y.pred

However, I want to fix some of the parameters in my.fcn at various values 
and compute the parameter estimates. In Splus there is such a thing as a 
parameterized dataframe. I don't think this exists in R so does anyone know 
how to set one or more of the parameters as constants in the model? Thank 
you.

Jeff Breiwick

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html