Re: [R] How to fit all points into plot?

2005-12-30 Thread Patrick Burns
Another approach to what has already been suggested is to use 'matplot' (as in matrix plot). Patrick Burns [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and A Guide for the Unwilling S User) Martin Lam wrote: Hi, I have a problem when I want to add new

Re: [R] Problem Reading SPlus Dump Into R - Spaces Embedded in Data

2005-12-30 Thread Peter Dalgaard
allan miller [EMAIL PROTECTED] writes: Peter Dalgaard wrote: allan miller [EMAIL PROTECTED] writes: Hello, I'm trying to source() an SPlus 6.x file created using dump(..., oldStyle=T) into R (version 2.01) as using the following instructions: *If you have access to S-PLUS,

Re: [R] Axis/Ticks/Scale

2005-12-30 Thread Jim Lemon
[EMAIL PROTECTED] wrote: ... I would like the axes to be 0,2,4,6,8,10 with a *10^5 on the right hand side. Is there a simple command for this? This post so interested me that I wrote the following function: axis.mult-function(side=1,at=NULL,labels,mult=1,mult.label,mult.line,

Re: [R] Split graph labels in 2 levels

2005-12-30 Thread Jim Lemon
Andrej Kastrin wrote: Dear R users, is there any simple low-level function that split single-line graph labels and produce something like (e.g. for x axis): 100300500 700... 200400 600 staxlab in the plotrix package. Jim

[R] clustering method

2005-12-30 Thread [EMAIL PROTECTED]
Hello r-helpers I have a correlation matrix (either pearson or spearman) of 41 variables and i want to use it to construct a tree with agnes command (instead of using the distances). My problem is that at the height of the tree i see negative scaling also which is not desired. Is there any

Re: [R] importing shapefiles into spatstat

2005-12-30 Thread Roger Bivand
On Fri, 30 Dec 2005, Mulholland, Tom wrote: You might also consider looking at the R-sig-Geo list which has lots of discussion about issues relating to file formats and the best ways to get data in and out the various packages that are used. Yes, there are examples there. The current advice

Re: [R] clustering method

2005-12-30 Thread Sean Davis
On 12/30/05 5:27 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello r-helpers I have a correlation matrix (either pearson or spearman) of 41 variables and i want to use it to construct a tree with agnes command (instead of using the distances). My problem is that at the height of the

[R] Count or summary data

2005-12-30 Thread Xiyan Lon
Dear all, I want to summary and count my data something like te.Ce [,1] [,2] [1,] -1 0.05 [2,]1 0.05 [3,]1 0.00 [4,]0 0.05 [5,] -1 0.00 [6,]0 0.10 [7,]1 0.10 [8,] -1 0.00 [9,] -1 0.10 [10,]0 0.05 [11,]0 0.10 [12,] -1 0.10 [13,]1 0.00 [14,]

Re: [R] Count or summary data

2005-12-30 Thread bogdan romocea
Here's one approach, v1 - sample(c(-1,0,1),30,replace=TRUE) v2 - sample(c(0.05,0,0.1),30,replace=TRUE) lst - split(v1,v2) counted - lapply(lst,table) mat - do.call(rbind,counted) print(counted) print(mat) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

Re: [R] Count or summary data

2005-12-30 Thread Gabor Grothendieck
Assuming te.Ce is a data frame: table(te.Ce) On 12/30/05, Xiyan Lon [EMAIL PROTECTED] wrote: Dear all, I want to summary and count my data something like te.Ce [,1] [,2] [1,] -1 0.05 [2,]1 0.05 [3,]1 0.00 [4,]0 0.05 [5,] -1 0.00 [6,]0 0.10 [7,]1 0.10

Re: [R] Count or summary data

2005-12-30 Thread jim holtman
Here is one way and how to access the data: x [,1] [,2] [1,] -1 0.05 [2,]1 0.05 [3,]1 0.00 [4,]0 0.05 [5,] -1 0.00 [6,]0 0.10 [7,]1 0.10 [8,] -1 0.00 [9,] -1 0.10 [10,]0 0.05 [11,]0 0.10 [12,] -1 0.10 [13,]1 0.00 [14,] -1 0.05 [15,]

Re: [R] Count or summary data

2005-12-30 Thread Marc Schwartz
On Fri, 2005-12-30 at 15:47 +0100, Xiyan Lon wrote: Dear all, I want to summary and count my data something like te.Ce [,1] [,2] [1,] -1 0.05 [2,]1 0.05 [3,]1 0.00 [4,]0 0.05 [5,] -1 0.00 [6,]0 0.10 [7,]1 0.10 [8,] -1 0.00 [9,] -1 0.10

[R] How extract the names of ID in SpatialPolygons object

2005-12-30 Thread fernando espindola
Hi dear user, Anybody can tell me how extract the names of ID in SpatialPolygons object, I am try to link a data frame attributes with spatial polygons, but the row names of data frame is not the same that ID poligons. Thank for all Fernando [[alternative HTML version deleted]]

Re: [R] ESS and Emacs

2005-12-30 Thread John Fox
Dear Paul and Mark, I've just taken a look at the current XEmacs setup program for Windows, and it has changed significantly since the document to which you referred was last updated (about a year ago). In particular, the XEmacs setup no longer gives you the option to install all packages, as I

[R] Error in X11(paste(png::, filename, sep = ), width, height, pointsize unable to start device PNG

2005-12-30 Thread Vincent Deng
Hi, I got this error while using png() function in RedHat 9.0. Error in X11(paste(png::, filename, sep = ), width, height, pointsize unable to start device PNG It looks like the system lacks some library for graphics. Can anyone tell me which rpm I should install to have png() function work with

[R] ess emacs 'shift+-' and '-'

2005-12-30 Thread Albert Vilella
Hi all, I would like to ask about how to disable the ess emacs shortcut that converts shift+- to '-' instead of _ symbols. Thanks in advance, Bests, Albert. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] How extract the names of ID in SpatialPolygons object

2005-12-30 Thread Roger Bivand
On Fri, 30 Dec 2005, fernando espindola wrote: Hi dear user, Anybody can tell me how extract the names of ID in SpatialPolygons object, I am try to link a data frame attributes with spatial polygons, but the row names of data frame is not the same that ID poligons. The most generic

Re: [R] ess emacs 'shift+-' and '-'

2005-12-30 Thread Sean Davis
On 12/30/05 11:58 AM, Albert Vilella [EMAIL PROTECTED] wrote: Hi all, I would like to ask about how to disable the ess emacs shortcut that converts shift+- to '-' instead of _ symbols. Just hit the key twice. It will convert back to an underline. Sean

Re: [R] Error in X11(paste(png::, filename, sep = ), width, height, pointsize unable to start device PNG

2005-12-30 Thread Marc Schwartz
On Sat, 2005-12-31 at 00:34 +0800, Vincent Deng wrote: Hi, I got this error while using png() function in RedHat 9.0. Error in X11(paste(png::, filename, sep = ), width, height, pointsize unable to start device PNG It looks like the system lacks some library for graphics. Can anyone tell

[R] A difficulty with boot package

2005-12-30 Thread justin bem
Hi, I have a difficulty with the bootstrap procedure in boot package. How can I specify the size of sample at each bootstrap ? I use myboot-boot(data,boot.fun,R=300) when I display myboot$t I get a vector with just one value the than the compute statistic in my data file

Re: [R] Different ARCH results in R and Eviews using garch from tseries

2005-12-30 Thread Spencer Graves
Have you tried the garch modeling in the fSeries package? Also, have you tried to think of an example so small and simple you can work it yourself either entirely by hand or using something more transparent? For example, I often use the Solver in Excel to minimize a

Re: [R] Parameter Constraints in nls.lm()

2005-12-30 Thread Spencer Graves
Have you referred this question to the maintainer of minpack.lm, the package containing nls.lm? help(package='minpack.lm') should give you a name and an email address. My two favorite techniques for handling constraints are as follows: (1) Eliminate the

Re: [R] ess emacs 'shift+-' and '-'

2005-12-30 Thread Brahm, David
Albert Vilella [EMAIL PROTECTED] wrote: I would like to ask about how to disable the ess emacs shortcut that converts shift+- to '-' instead of _ symbols. Put this in your .emacs file (after ess is loaded): (ess-toggle-underscore nil) By the way, check out the ESS-help mailing list:

Re: [R] lme X lmer results

2005-12-30 Thread Douglas Bates
On 12/29/05, John Maindonald [EMAIL PROTECTED] wrote: Surely there is a correct denominator degrees of freedom if the design is balanced, as Ronaldo's design seems to be. Assuming that he has specified the design correctly to lme() and that lme() is getting the df right, the difference is

Re: [R] [ESS] ESS and Emacs

2005-12-30 Thread A.J. Rossini
Whoops, sorry John. In the last few months, we took off the XEmacs packaged ESS since it wasn't keeping up very well with the tarball, due to complications, mis-matched release schedules/requirements, and the like. It now needs to be installed from tarball, though there is some help for that, I

[R] unexpected false convergence

2005-12-30 Thread Jack Tanner
I've come into some code that produces different results under R 2.1.1 and R 2.2.1. I'm really unfamiliar with the libraries in question (MASS and nlme), so I don't know if this is a bug in my code, or a regression in R. If it's a bug on my end, I'd appreciate any advice on potential causes and

Re: [R] unexpected false convergence

2005-12-30 Thread Jack Tanner
I should've added that I looked in the changelogs for R, nlme, and MASS, and didn't see anything obviously related, but, as I said, I'm really unfamiliar with those libraries. __ R-help@stat.math.ethz.ch mailing list

Re: [R] ess emacs 'shift+-' and '-'

2005-12-30 Thread Martin Maechler
Sean == Sean Davis [EMAIL PROTECTED] on Fri, 30 Dec 2005 12:01:08 -0500 writes: Sean On 12/30/05 11:58 AM, Albert Vilella [EMAIL PROTECTED] wrote: Hi all, I would like to ask about how to disable the ess emacs shortcut that converts shift+- to '-' instead of _

Re: [R] bVar slot of lmer objects and standard errors

2005-12-30 Thread Douglas Bates
On 12/29/05, Doran, Harold [EMAIL PROTECTED] wrote: Uli: The graphic in the paper, sometimes called a catepillar plot, must be created with some programming as there is (as far as I know) not a built-in function for such plots. As for the contents of bVar you say the dimensions are 2,2,28

Re: [R] bVar slot of lmer objects and standard errors

2005-12-30 Thread Spencer Graves
Hi, Doug: Thanks. Perhaps the easiest way to check would be to find an example with answers you believe to be correct and compare what this gives you with the presumed correct answers. I don't have such an example handy, but Ulrich Keller, who originated this thread, might. If

Re: [R] A difficulty with boot package

2005-12-30 Thread Marc Schwartz
On Fri, 2005-12-30 at 18:37 +0100, justin bem wrote: Hi, I have a difficulty with the bootstrap procedure in boot package. How can I specify the size of sample at each bootstrap ? I use myboot-boot(data,boot.fun,R=300) when I display myboot$t I get a vector with just one

Re: [R] Error in X11(paste(png::, filename, sep = ), width, height, pointsize unable to start device PNG

2005-12-30 Thread paul sorenson
Marc Schwartz wrote: ... On a side note, RH9 is a fairly dated and EOL'd distribution, with security updates and bug patches only provided by the Fedora Legacy folks (http://fedoralegacy.org). You should consider upgrading to Fedora in the near future (if you want to stay with RH), since the

Re: [R] Error in X11(paste(png::, filename, sep = ), width, height, pointsize unable to start device PNG

2005-12-30 Thread Marc Schwartz
On Sat, 2005-12-31 at 12:30 +1100, paul sorenson wrote: Marc Schwartz wrote: ... On a side note, RH9 is a fairly dated and EOL'd distribution, with security updates and bug patches only provided by the Fedora Legacy folks (http://fedoralegacy.org). You should consider upgrading to Fedora

[R] Q about RSQLite

2005-12-30 Thread Wensui Liu
Happy new year, dear listers, I have a question about Rsqlite. when I fetch the data out of sqlite database, there is something like '\r\n' at the end of last column. Here is the example: Sepal_Length Sepal_Width Petal_Length Petal_WidthSpecies 1 5.1 3.5 1.4

Re: [R] Error in X11(paste(png::, filename, sep = ), width, height, pointsize unable to start device PNG

2005-12-30 Thread Prof Brian Ripley
Two comments: 1) Marc did not suggest updating to FC4 but to Fedora. It makes a lot of sense to update RH8.0/9 systems to FC3 (which is what we have done) or RHEL4 or CentOS (which have a similar code base). 2) A fully patched FC4 is indeed usable as Marc says, and some R-core members use it.