[R] RNetCDF seg fault

2005-11-29 Thread Viet Nguyen
Dear RNetCDF developers,

I haven't been able to load RNetCDF in R for a while.  I wonder if this 
is a bug or a problem with my installation.

I'm using Debian testing.

  library(RNetCDF)
Segmentation fault
5:01pm(dongda)~R --version
R 2.2.0 (2005-10-06).
Copyright (C) 2005 R Development Core Team

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the GNU
General Public License.  For more information about these matters,
see http://www.gnu.org/copyleft/gpl.html.
5:01pm(dongda)~uname -a
Linux dongda 2.6.11 #8 SMP Sun Mar 20 21:09:51 CET 2005 i686 GNU/Linux

__
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] using minor tickmarks with xYplot

2005-11-28 Thread Viet Nguyen
Hi all,

I'm trying to make a plot with the function xYplot from package Hmisc in 
R.  I would like to have minor tick-marks on the axis.  This should be a 
common simple feature to have but I don't seem to find any discussion on 
the topic.

Following is one of the things I tried and the error returned:

xYplot(y~x,data.frame(x=seq(1,10),y=runif(10)),minor.ticks=c(3.5,5.5))
Error in panel(x = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), y = 
c(0.88172451662831,  :
object gfun not found

It's important that I use xYplot and not plot so function 
minor.tick() is not useful.

Anything I can try?  Thanks in advance for your help.

vn

__
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] rotated ylab with xyplot

2005-11-28 Thread Viet Nguyen
hi all,

in R, what's the best way to have a rotated ylab in a graph plotted with 
either xyplot or xYplot?  I tried this but it didn't work.

xyplot(y~x,data.frame(x=1:10,y=runif(10)),ylab=list(srt=90,crt=90,rot=90,label=my
 label))


more generally, how do you output a text at an angle in a lattice graph?

what would be a good reference for R lattice graphics?  I need more help 
than the help pages provide.

thank you in advance.

vn

__
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


Re: [R] dots expansion

2004-08-03 Thread Viet Nguyen
Thanks to all who helped.
I used your ideas and code samples to write the following (for the 
benefit of people who will search this list later):

rbind.case - function(..., name=case, values) {
   dots - list(...);
   if (missing(values)) values - 1:length(dots);
   if (length(values)!=length(dots))
 stop(length(values)!=length(list(...)));
   eval(parse(text=
  paste(cbind(rbind(...), ,name,
=rep(values, sapply(dots, nrow))),sep=)));
}
The function is to be used with data frames. It's not as good as it can 
be but it works for my purpose.

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


[R] dots expansion

2004-08-02 Thread Viet Nguyen
Hi list,
I'm trying to write a function similar to rbind, except that needs to 
add a factor to each component array before rbinding them together so 
that the rows from different arrays are distinguishable.

The problem that arose is how to loop through arguments in the dots 
... list. I need to get a hand on each of them but don't know how many 
of them there are and what their names are.

It'd be useful if I could look at how rbind(...) or c(...) do this but 
they are both Internal functions.

Thanks in anticipation of help!
Regards,
viet
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] netcdf read/write package

2003-06-28 Thread Viet Nguyen
Hi everyone,

I'm looking for an R package that is capable of _write_ as well as read 
in netcdf format.  Could someone offer advice on this?

I have some data in netcdf format and I only need to make simple 
modifications to it.
I thought doing that via R could be handy and would save me reading up 
on C++/Fortran netcdf lib.

Thanks and regards,
viet nguyen
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] looking for Prof Bates' file

2003-06-09 Thread Viet Nguyen
Actually the file is there when I check today. The server was down 
yesterday.

Thanks,
viet
Message: 31 Date: 09 Jun 2003 11:44:25 +0200 From: Peter Dalgaard BSA 
[EMAIL PROTECTED] Subject: Re: [R] looking for Prof Bates' 
file To: Viet Nguyen,,, [EMAIL PROTECTED] Cc: 
[EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] 
Content-Type: text/plain; charset=us-ascii Viet Nguyen,,, 
[EMAIL PROTECTED] writes:

Hello

I'm reading up on fitting truncated Weibull distribution to data.

There are posts in 2002 that point to this presentation by Prof Bates:

http://www.stat.wisc.edu/~bates/JSM2001.pdf

but now the file is not there. I can't find it anywhere else, Google
doesn't have a cached copy for it.
Could someone please give me a copy of this file, if they have it?

Thanks and regards,
viet.
   

Looks like www.stat.wisc.edu is no longer identical to Doug's desktop
machine. The file is still there, but I'm not too sure whether he
would want us to tell the world how to get to it, so perhaps we should
wait for him to reply...
-- O__  Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of 
Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark 
Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 
35327907 --

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] looking for Prof Bates' file

2003-06-08 Thread Viet Nguyen,,,
Hello

I'm reading up on fitting truncated Weibull distribution to data.

There are posts in 2002 that point to this presentation by Prof Bates:

http://www.stat.wisc.edu/~bates/JSM2001.pdf

but now the file is not there. I can't find it anywhere else, Google 
doesn't have a cached copy for it.

Could someone please give me a copy of this file, if they have it?

Thanks and regards,
viet.
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help