[R] R-help problems?

2004-10-14 Thread Martin Maechler
ETH had several small electric power outages last evening and even though most big network problems have been resolved by about midnight, we still have seen services not working properly. All mailing lists -- but R-help -- have seemingly worked fine all the time. This is also a test mail trying

Re: [R] Maps and plotting

2004-10-14 Thread Barry Rowlingson
Shawn Way wrote: At our facility we have multiple sample points that are sampled on any given day. What I would like to do is create a map of the facility with the sample points (and point labels) and when we have out of specification results, place a transparent dot over the area on the map. As

Re: [R] Maps and plotting

2004-10-14 Thread Prof Brian Ripley
On Thu, 14 Oct 2004, Barry Rowlingson wrote: Shawn Way wrote: At our facility we have multiple sample points that are sampled on any given day. What I would like to do is create a map of the facility with the sample points (and point labels) and when we have out of specification

RE: [R] Maps and plotting

2004-10-14 Thread Shawn Way
Thank you very much.. It seems that the points problem is fairly easy to solve, I just need to work on the mapping.. Thanks again... Shawn Way, PE Engineering Manager [EMAIL PROTECTED] -Original Message- From: Barry Rowlingson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14,

FW: [R] Maps and plotting

2004-10-14 Thread Shawn Way
Thanks for the help on the translucent dots. What would be the best method for creating a map of the facility? I looked into map* in the libraries and didn't find anything on creating the maps, just using them. Thanks again... Shawn Way, PE Engineering Manager [EMAIL PROTECTED]

Re: [R] correlating between two vectors of numbers

2004-10-14 Thread Sean Davis
Anders, Does your data have missing values? It looks like they might. Look at the 'use' parameter in cor. Also, is there a reason to use cor.test instead of cor. Finally, if the expression values are not normal, could you transform them first to make them more so--log2, for example? And,

Re: FW: [R] Maps and plotting

2004-10-14 Thread Roger Bivand
On Thu, 14 Oct 2004, Shawn Way wrote: Thanks for the help on the translucent dots. What would be the best method for creating a map of the facility? I looked into map* in the libraries and didn't find anything on creating the maps, just using them. Depends what you mean by creating? If

[R] Filling polygons with points

2004-10-14 Thread Wolf, Michael
Dear list, are there any possibilities to fill a polygon with a point pattern or with a symbol pattern like '+' oder '-' instead of shading lines? Thanks in advance Dr. Michael Wolf Bezirksregierung Münster Dezernat 61 Domplatz 1-348161 Münster Tel.: ++ 49 (02 51) / 4 11 - 17 95 Fax.:

[R] setClassUnion

2004-10-14 Thread Matthias . Kohl
Hello, I have a question concerning setClassUnion. I'm working with R 2.0.0 Patched (2004-10-06) on windows 2000. I tried to use setClassUnion in a package I am currently working on. The situation is similar to the following example: The DESCRIPTION file has entries: Depends: R (= 2.0.0),

Re: [R] setClassUnion

2004-10-14 Thread Matthias . Kohl
sorry, please replace exportClass by exportClasses Hello, I have a question concerning setClassUnion. I'm working with R 2.0.0 Patched (2004-10-06) on windows 2000. I tried to use setClassUnion in a package I am currently working on. The situation is similar to the following example: The

[R] Newsletter 2 www.krankenversicherung.ch

2004-10-14 Thread www.krankenversicherung.ch
Sehr geehrte Leserin, sehr geehrter Leser KRANKENVERSICHRUNGS-NEWSLETTER 2 zum Thema Franchisenwahl KRANKENKASSEN-PRAEMIEN 2005 Wichtige Informationen von und ueber alle Schweizer Krankenversicherer finden Sie auf www.krankenversicherung.ch. Sie können sich informieren, eine unverbindliche

[R] beginner questions: objects and scripts

2004-10-14 Thread Terry Mu
hi, I got some questions on using R, 1. How do I check and edit definition of an object? for example, x - 1:100 then after a while I want to check how x is defined. list(x) or whatever functions I know only list its content, but I want to see its definition, without scrolling up and down,

Re: [R] Filling polygons with points

2004-10-14 Thread Duncan Murdoch
On Thu, 14 Oct 2004 15:16:30 +0200, Wolf, Michael [EMAIL PROTECTED] wrote : Dear list, are there any possibilities to fill a polygon with a point pattern or with a symbol pattern like '+' oder '-' instead of shading lines? I don't think the graphics devices know how to do that, but you could

Re: [R] beginner questions: objects and scripts

2004-10-14 Thread Douglas Bates
Terry Mu wrote: hi, I got some questions on using R, 1. How do I check and edit definition of an object? for example, x - 1:100 then after a while I want to check how x is defined. list(x) or whatever functions I know only list its content, but I want to see its definition, without

RE: [R] Filling polygons with points

2004-10-14 Thread Andy Bunn
I made a quick search and was unable to find a general implementation of the interior function for an arbitrary polygon; I'm a bit surprised about that. Hopefully someone else can point to one, otherwise please write one, and document it and contribute it to R. It's a relatively standard

Re: [R] Filling polygons with points

2004-10-14 Thread Petr Pikal
On 14 Oct 2004 at 10:00, Duncan Murdoch wrote: On Thu, 14 Oct 2004 15:16:30 +0200, Wolf, Michael [EMAIL PROTECTED] wrote : Dear list, are there any possibilities to fill a polygon with a point pattern or with a symbol pattern like '+' oder '-' instead of shading lines? I don't think

Re: [R] beginner questions: objects and scripts

2004-10-14 Thread Duncan Murdoch
On Thu, 14 Oct 2004 07:00:01 -0700 (PDT), Terry Mu [EMAIL PROTECTED] wrote : hi, I got some questions on using R, 1. How do I check and edit definition of an object? for example, x - 1:100 then after a while I want to check how x is defined. list(x) or whatever functions I know only list

Re: [R] beginner questions: objects and scripts

2004-10-14 Thread Mike Prager
[...]How to save my work in current session as a nice script? again, I want to save objects as they are defined, not numbers, other than copy / paste. I tried dump(), etc. In another word, how do you work with R?[...] Many people use the ESS (Emacs Speaks Statistics) package for Emacs or XEmacs

Re: [R] Filling polygons with points

2004-10-14 Thread Roger Bivand
On Thu, 14 Oct 2004, Petr Pikal wrote: On 14 Oct 2004 at 10:00, Duncan Murdoch wrote: On Thu, 14 Oct 2004 15:16:30 +0200, Wolf, Michael [EMAIL PROTECTED] wrote : Dear list, are there any possibilities to fill a polygon with a point pattern or with a symbol pattern like '+'

[R] R and Java

2004-10-14 Thread laura.dow
I am calling R from within Java. But I don't think that I can get any plots written to file from R - inside Java. This snippet of code(from a larger piece of code) compiles in Java, but doesn't do anything! functions.append(trial-c(1,3,4,5)\n);

[R] fidelity of generated raster images (R and perl)

2004-10-14 Thread Scott Harrison
Hi: Goal: use R to turn a matrix of 1's and 0's into a corresponding image (e.g. png) of black and white pixels. Why R: Yes, I can do this more efficiently and precisely with a perl module like Image::PBM. Been there, done that many times, etc. (Just humor

[R] (no subject)

2004-10-14 Thread Jean-Luc aLLARD
Hi, Why this code is good in S-plus, and don't good in R ? getMethod([,matrix) thanks __ [EMAIL PROTECTED] 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] xyplot gets overplotted by plot

2004-10-14 Thread Henric Nilsson
Dear all, After having set par(mfrow = c(2, 2)) and switching between plot() and xyplot() using R 2.0.0 Patched (2004-10-13) under Windows 2000, the lattice plot gets overplotted. I also tried this under 1.9.1 Patched (2004-09-22), since this is the only older version I've got installed, and it

Re: [R] fidelity of generated raster images (R and perl)

2004-10-14 Thread Roger Bivand
On Thu, 14 Oct 2004, Scott Harrison wrote: Hi: Goal: use R to turn a matrix of 1's and 0's into a corresponding image (e.g. png) of black and white pixels. Maybe use the write.pnm() function in the pixmap package: try1 - matrix(0, nrow=100, ncol=100)

Re: [R] fidelity of generated raster images (R and perl)

2004-10-14 Thread Martin Maechler
Scott == Scott Harrison [EMAIL PROTECTED] on Thu, 14 Oct 2004 11:13:16 -0400 writes: Scott Hi: Goal: use R to turn a matrix of 1's and 0's into Scott a corresponding image (e.g. png) of black and white Scott pixels. Scott Why R: Yes, I can do this more efficiently and

Re: [R] xyplot gets overplotted by plot

2004-10-14 Thread Prof Brian Ripley
On Thu, 14 Oct 2004, Henric Nilsson wrote: After having set par(mfrow = c(2, 2)) and switching between plot() and xyplot() using R 2.0.0 Patched (2004-10-13) under Windows 2000, the lattice plot gets overplotted. I also tried this under 1.9.1 Patched (2004-09-22), since this is the only

Re: [R] beginner questions: objects and scripts

2004-10-14 Thread Mike Prager
At 10/14/2004 10:45 AM Thursday, you wrote: [...]How to save my work in current session as a nice script? again, I want to save objects as they are defined, not numbers, other than copy / paste. I tried dump(), etc. In another word, how do you work with R?[...] Many people use the ESS (Emacs

Re: [R] xyplot gets overplotted by plot

2004-10-14 Thread Roger D. Peng
Mixing base and lattice graphics, in general, does not work. If you really want to do something along these lines, look at the `gridBase' package on CRAN. -roger Henric Nilsson wrote: Dear all, After having set par(mfrow = c(2, 2)) and switching between plot() and xyplot() using R 2.0.0

RE: [R] fidelity of generated raster images (R and perl)

2004-10-14 Thread Henrik Bengtsson
Hi. To add to Roger's pixmap format and Martin's image() replies, I played with such problems a while ago and implemented a few metods and classes for this. Install my R.classes bundle (http://www.maths.lth.se/help/R/R.classes/) and try the MonochromeImage class in the R.graphics package.

Re: [R] xyplot gets overplotted by plot

2004-10-14 Thread Henric Nilsson
At 17:09 2004-10-14 +0100, Prof Brian Ripley wrote: You can't expect base graphics to know that you have used a grid plot (via lattice) after the last base graphics plot and did not intend to write on top of the latter. Base graphics has been told to write on the existing page of the device, in

Re: [R] xyplot gets overplotted by plot

2004-10-14 Thread Prof Brian Ripley
On Thu, 14 Oct 2004, Henric Nilsson wrote: At 17:09 2004-10-14 +0100, Prof Brian Ripley wrote: You can't expect base graphics to know that you have used a grid plot (via lattice) after the last base graphics plot and did not intend to write on top of the latter. Base graphics has been told

[R] problems compiling packages in R 2.0.0

2004-10-14 Thread r . ghezzo
Hello, I am trying to get my old packages to work in R 2.0.0 in Windows XP. Here is what I did Etc is a package of pure R functions Rcmd INSTALL -l c:/R/R_Src/library C:/R/R_Src/src/Etc -Making package Etc - adding build stamp to DESCRIPTION installing R files

Re: [R] xyplot gets overplotted by plot

2004-10-14 Thread Henric Nilsson
At 19:25 2004-10-14 +0200, Henric Nilsson wrote: [...] I assumed that every call to plot erased the device before plotting. Please disregard! If it worked that way, the par(mfrow = c(2, 2)) would have been quite useless in the first place... Henric __

RE: [R] Statistical analysis of a large database

2004-10-14 Thread Vadim Ogranovich
I thought that maybe authors of books on R should be allowed (encouraged ?) to announce availability/revisions of their books via the R-packages list? For example I'd be very interested to have another look at Dr. Torgo's book when it becomes more complete and I'd appreciate a revision notice

[R] Problem with number characters

2004-10-14 Thread Scott Waichler
I am trying to process text fields scanned in from a csv file that is output from the Windows database program FileMakerPro. The characters onscreen look like regular text, but R does not like their underlying binary form. For example, one of text fields contains a name and a number, but R

RE: [R] Problem with number characters

2004-10-14 Thread Gabor Grothendieck
Assuming that the problem is that your input file has additional embedded characters added by the data base program you could try extracting just the text using the UNIX strings program: strings myfile.csv myfile.txt and see if myfile.txt works with R and if not check out what the

[R] random forest problem when calculating variable importance

2004-10-14 Thread Scott Gilpin
Hi - When using the randomForest function for regression, I get different results for mean-squared error of the predictions depending on whether or not I specify to calculate variable importance. There is an example below. I looked briefly at the source code, but couldn't find anything that

[R] defining a function by branches

2004-10-14 Thread Pedro Rodrigues de Almeida
Hi there, How can I plot a function in R which is defined by conditional branches?, e.g.: u(x) = 1, Edx2Ed (where Ed is a positive constant, say, 25); u(x)=0.5*x, x2Ed curve(u(x), ) So far I have had to use curve(..., add=TRUE) with two function define by segments, i.e., two branches or

RE: [R] random forest problem when calculating variable importanc e

2004-10-14 Thread Liaw, Andy
Are the results dramatically different? The result would be expected to be somewhat different, as setting importance=TRUE would make many calls to the random number generator (for permuting OOB data in each variable), making all but the first tree in the forest different than if importance=FALSE.

Re: [R] defining a function by branches

2004-10-14 Thread Duncan Murdoch
On Thu, 14 Oct 2004 23:24:40 +0300, Pedro Rodrigues de Almeida [EMAIL PROTECTED] wrote : Hi there, How can I plot a function in R which is defined by conditional branches?, e.g.: u(x) = 1, Edx2Ed (where Ed is a positive constant, say, 25); u(x)=0.5*x, x2Ed ifelse(x 2*Ed, 1, 0.5*x) is close

Re: [R] defining a function by branches

2004-10-14 Thread Vincent Goulet
Le 14 Octobre 2004 16:24, Pedro Rodrigues de Almeida a écrit : Hi there, How can I plot a function in R which is defined by conditional branches?, e.g.: u(x) = 1, Edx2Ed (where Ed is a positive constant, say, 25); u(x)=0.5*x, x2Ed curve(u(x), ) So far I have had to use curve(...,

[R] Problem with R version 2.0.0 (and patched)

2004-10-14 Thread Jean Vidal
What I am doing : create a simple correlation matrix on 41 variables, then plot an heatmap with this program : library(gplots) mat-cor(temp.alln,use=pairwise.complete.obs) hm-heatmap.2(mat,symm=T) HM-format(round(mat[hm[[1]],hm[[2]]],2)) library(RColorBrewer) brewer.pal(10,Spectral)-mp

Re: [R] Problem with number characters

2004-10-14 Thread Spencer Graves
It looks like you have several non-printing characters. nchar will give you the total number of characters in each character string. strsplit can break character strings into single characters, and %in% can be used to classify them. Consider the following: x - Draszt 0%/1iso8859-15 nx -

[R] maximum likelihood estimation

2004-10-14 Thread T. Murlidharan Nair
Since mle is defunct is there anyother function I can use for maximum likelihood estimation ? Thanks ../Murli __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] Problem with R version 2.0.0 (and patched)

2004-10-14 Thread Duncan Murdoch
On Thu, 14 Oct 2004 22:38:34 +0200, Jean Vidal [EMAIL PROTECTED] wrote : What I am doing : create a simple correlation matrix on 41 variables, then plot an heatmap with this program : library(gplots) gplots is a package in the gregmisc bundle. mat-cor(temp.alln,use=pairwise.complete.obs)

Re: [R] maximum likelihood estimation

2004-10-14 Thread Roger D. Peng
What lead you to believe that mle() is defunct? It's still in the `stats4' package in my installation of R. -roger T. Murlidharan Nair wrote: Since mle is defunct is there anyother function I can use for maximum likelihood estimation ? Thanks ../Murli

RE: [R] Problem with number characters

2004-10-14 Thread Waichler, Scott R
Gabor wrote: Assuming that the problem is that your input file has additional embedded characters added by the data base program you could try extracting just the text using the UNIX strings program: strings myfile.csv myfile.txt Spencer wrote: strsplit can break character strings into

[R] C/C++

2004-10-14 Thread doktora v
Hey everyone, I have been looking for a while for ways to integrate R's wonderful functions into my C++ software, but I have not found anything concrete. So finally, i post to this list to see if anyouse else knows about this, or has done it!? Is it possible? Are there C++ or C R libraries? Or

RE: [R] Problem with R version 2.0.0 (and patched)

2004-10-14 Thread Warnes, Gregory R
Yes, please provide an example of the data that can lead to the crash. FWIW, the heatmap.2 function uses only standrd R calls and doesn't use any external C code. (There isn't any C code in the entire library). So, the bug is likely to stem from something in base R. -G -Original

[R] 2d approx

2004-10-14 Thread Vadim Ogranovich
Hi, I am looking for a function that generalizes 'approx' to two (or more) dimensions. The references on the approx help page point toward splines, but a) splines is what I am trying to avoid in the first place and b) splines (except for mgcv splines) seem to be one dimensional. Here is a more

Re: [R] 2d approx

2004-10-14 Thread roger koenker
?interp in akima for f: R^2 - R. url:www.econ.uiuc.edu/~rogerRoger Koenker email [EMAIL PROTECTED] Department of Economics vox:217-333-4558University of Illinois fax:217-244-6678Champaign,

Re: [R] beginner questions: objects and scripts

2004-10-14 Thread Kjetil Brinchmann Halvorsen
Terry Mu wrote: hi, I got some questions on using R, 1. How do I check and edit definition of an object? for example, x - 1:100 You should'nt really redefine assignment, but something like - - function(xyz4, value) { v - deparse(substitute(value)) xname -