[R] adding a line to a single panel of a lattice plot

2004-05-17 Thread Ken Knoblauch
I'm struggling to find a way to add a line (abline, lline or lmline) to a single panel of a lattice plot. In one panel, there is an outlier and I'd like to include a second lmline fit to the data without this point. I've looked through nine pages of the archives on lattice and it wasn't obvious

[R] drawing half-circles

2004-05-17 Thread adiamond
Dear wonderful R community, I've been creating color-coded concentric circles using the points function, but I just realized that what I would really like to do is draw color-coded concentric half-circles. (Because I want to communicate information about the diameters-- half-circles are

Re: [R] drawing half-circles

2004-05-17 Thread Barry Rowlingson
[EMAIL PROTECTED] wrote: Dear wonderful R community, I've been creating color-coded concentric circles using the points function, but I just realized that what I would really like to do is draw color-coded concentric half-circles. What should I do? Write a 'halfCircle' function. halfCircle -

[R] Accessing data

2004-05-17 Thread TEMPL Matthias
Hello, I would like to access my data frame without one variable. E.g.: colnames(x) [1] Besch Ang.m Arb.m i10Umsatz arbstd I can try x[,-1], but this variable must be called by it´s name. x[,-Besch] x[,!Besch] attach(x) x[-Besch] ... ... does not work. I could not found a solution

Re: [R] Accessing data

2004-05-17 Thread Petr Pikal
Hi On 17 May 2004 at 10:46, TEMPL Matthias wrote: Hello, I would like to access my data frame without one variable. E.g.: colnames(x) [1] Besch Ang.m Arb.m i10Umsatz arbstd I can try x[,-1], but this variable must be called by its name. x[,names(x)!=Besch] should work

[R] Re :adding a line to a single panel of a lattice plot

2004-05-17 Thread Ken Knoblauch
OK, I've found the solution myself adapted from the example on p. 101 of VR MASS, 4th edition. This works as I would like it to, plotting an abline on a single panel: xyplot(y ~ x | z, data = my.df, subscripts=TRUE, ID=my.df$z, panel=function(x,y) { panel.xyplot(x,y)

[R] Problem with package SJava

2004-05-17 Thread Vincent MUTEAUD
Hello all, I'm trying to run SJava package (0.65 modified downloaded from : http://stats.math.uni-augsburg.de/iPlots/alpha/) on windows NT 2000 and R 1.8.01. I have also downloaded the PDF Calling R from Java and when I want to execute the following code: import org.omegahat.R.Java.*; import

Re: [R] bus error macosx/off-topic

2004-05-17 Thread Ingmar Visser
On 5/13/04 12:46 PM, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Thu, 13 May 2004, Ingmar Visser wrote: Dear Prof Ripley, Thanks for your answer. On 5/12/04 2:52 PM, Prof Brian Ripley [EMAIL PROTECTED] wrote: These normally occur (at that point) from having written off one end of an

Re: [R] Accessing data

2004-05-17 Thread Paul Lemmens
Hoi TEMPL, --On maandag 17 mei 2004 10:46 +0200 TEMPL Matthias [EMAIL PROTECTED] wrote: Hello, I would like to access my data frame without one variable. E.g.: colnames(x) [1] Besch Ang.m Arb.m i10Umsatz arbstd I can try x[,-1], but this variable must be called by it´s name. x[,-Besch]

Re: [R] bus error macosx/off-topic

2004-05-17 Thread Prof Brian Ripley
On Mon, 17 May 2004, Ingmar Visser wrote: On 5/13/04 12:46 PM, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Thu, 13 May 2004, Ingmar Visser wrote: Dear Prof Ripley, Thanks for your answer. On 5/12/04 2:52 PM, Prof Brian Ripley [EMAIL PROTECTED] wrote: These normally occur

Re: [R] drawing half-circles

2004-05-17 Thread Duncan Murdoch
On Mon, 17 May 2004 09:39:01 +0100, Barry Rowlingson [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Dear wonderful R community, I've been creating color-coded concentric circles using the points function, but I just realized that what I would really like to do is draw color-coded

[R] Fw: add objects to svm plot

2004-05-17 Thread Sean Davis
Reposting to the group for input Thanks for any help you can provide. Sean - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 17, 2004 4:22 AM Subject: add objects to svm plot at 06.38 14/05/2004 -0400, you wrote: It might be helpful if you

Re: [R] bus error macosx/off-topic

2004-05-17 Thread Ingmar Visser
On 5/17/04 12:57 PM, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Mon, 17 May 2004, Ingmar Visser wrote: On 5/13/04 12:46 PM, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Thu, 13 May 2004, Ingmar Visser wrote: Dear Prof Ripley, Thanks for your answer. On 5/12/04 2:52 PM, Prof

[R] residuals in multinom

2004-05-17 Thread Schmidt.Matthias (FORST)
Hi, is there a possibility to calculate the different types of residuals directly using the multinom function from MASS as it is possible for the functions gam, glm using type=deviance or working or pearson or response? I tried it but got always the response type, I guess. thanx Matthias

[R] Fatal Error

2004-05-17 Thread Harold Doran
Dear List: When trying to open 1.9.0 this morning, I have the following error: Fatal Error: Unable to restore saved data in .Rdata I am using Windows 2000. The program then quits. Do I need to reinstall? Harold C. Doran One Massachusetts Avenue, NW · Suite 700 Washington, DC 20001-1431

Re: [R] Fatal Error

2004-05-17 Thread Adaikalavan Ramasamy
Try renaming (or moving or deleting) the .Rdata file. The .Rdata could be in somewhere like c:\Program Files\R\rw1090\. It is be considered a hidden file, so you may not be able to see it. Go to Tools-Folder Options-View and select show hidden files and folders or use dos prompt. On Mon,

Re: [R] Fatal Error

2004-05-17 Thread Duncan Murdoch
On Mon, 17 May 2004 08:30:57 -0400, Harold Doran [EMAIL PROTECTED] wrote: Dear List: When trying to open 1.9.0 this morning, I have the following error: Fatal Error: Unable to restore saved data in .Rdata I am using Windows 2000. The program then quits. Do I need to reinstall? It should be

RE: [R] Fatal Error

2004-05-17 Thread Harold Doran
Thank you. Locating and deleting the bad .Rdata file did the trick and I can now work in R. Thanks. -Original Message- From: Duncan Murdoch [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 8:45 AM To: Harold Doran Cc: [EMAIL PROTECTED] Subject: Re: [R] Fatal Error On Mon, 17 May

Re: [R] residuals in multinom

2004-05-17 Thread Prof Brian Ripley
A multinom model is not a glm, and its residuals() method follows the arguments of the generic and so is not otherwise documented. You got what ?residuals tells you. There is no analogue of `working': the model is not fitted by IWLS, and the linear predictor is multidimensional. One could

Re: [R] Fatal Error

2004-05-17 Thread Prof Brian Ripley
On Mon, 17 May 2004, Duncan Murdoch wrote: On Mon, 17 May 2004 08:30:57 -0400, Harold Doran [EMAIL PROTECTED] wrote: Dear List: When trying to open 1.9.0 this morning, I have the following error: Fatal Error: Unable to restore saved data in .Rdata I am using Windows 2000. The

[R] Plotting Time against Date for time series data?

2004-05-17 Thread Slist
Dear all, I have a data set containing GPS fixes of animal locations. To check that the GPS's are working properly, I would like to plot the time of the fixes (y-axis) against the date of the fixes (x-axis). If all works well, the plot should show four regular fixes per day. The x-axis should

Re: [R] Plotting Time against Date for time series data?

2004-05-17 Thread Prof Brian Ripley
On Mon, 17 May 2004, Slist wrote: I have a data set containing GPS fixes of animal locations. To check that the GPS's are working properly, I would like to plot the time of the fixes (y-axis) against the date of the fixes (x-axis). If all works well, the plot should show four regular fixes

[R] Change in how R handles assignments?

2004-05-17 Thread David Kreil
Dear R-users and experts, I have been using the following code in earlier versions of R: q[,names(info)]-info[no,]; with class(info) [1] data.frame class(q) [1] data.frame dim(q) [1] 7488 68 dim(info) [1] 12 8 dim(info[no,]) [1] 1 8 The column names(info) did not exist in q before

[R] Rmetrics

2004-05-17 Thread Diethelm Wuertz
Rmetrics - New Version is available for R 1.9 !! _ Rmetrics is an environment and a collection of functions which may be useful for teaching Financial Engineering and Computational Finance. Rmetrics can be used on top of R which

[R] ghost image in .eps file

2004-05-17 Thread Andrew Perrin
Greetings- An odd situation has developed. I use the following code to create .eps files of two very similar graphs: postscript(file='resources.bygt.eps', onefile=FALSE, horizontal=TRUE) barplot(resources.bygt.matrix, beside = TRUE, legend.text=c('narrative','doubt'),

RE: Re: [R] Plotting Time against Date for time series data?

2004-05-17 Thread Sander Oom
The plot is nearly there! Using the axis.POSIXct command I have got the x-axis under control. However, the units for the y-axis (Time) are in seconds by default (i.e. range is from 0 to 1440). I'm trying to plot hours along the y-axis, without changing the units for the plot itself, but

RE: Re: [R] Plotting Time against Date for time series data?

2004-05-17 Thread Prof Brian Ripley
On Mon, 17 May 2004, Sander Oom wrote: The plot is nearly there! Using the axis.POSIXct command I have got the x-axis under control. However, the units for the y-axis (Time) are in seconds by default (i.e. range is from 0 to 1440). I'm trying to plot hours along the y-axis, without

[R] displaying column numbers when listing structure of an object

2004-05-17 Thread J. Pedro Granadeiro
Dear R helpers, Is there any simple way to display the column(s) numbers(s) when listing the structure of objects (especially for objects with large number of columns)? Example on a data.frame: str(data.frame(v1=c(1:10),v2=(11:20))) `data.frame': 10 obs. of 2 variables: 1.. $ v1: int 1 2

[R] basics: how do you sort a table?

2004-05-17 Thread Monica Palaseanu-Lovejoy
Hi, This may be a very basic question but it seems i cannot figure it out does not matter what. how do you sort a table (ascending or descending) after the values in one particular column? I want to do something like the sort function in Xcel. Also, is there any other plot function that

Re: [R] basics: how do you sort a table?

2004-05-17 Thread Prof Brian Ripley
On Mon, 17 May 2004, Monica Palaseanu-Lovejoy wrote: This may be a very basic question but it seems i cannot figure it out does not matter what. how do you sort a table (ascending or descending) after the values in one particular column? I want to do something like the sort function in

[R] Plotting Time against Date for time series data? (2)

2004-05-17 Thread Sander Oom
Almost but not quite: Someone told me R would produce such high quality graphics, I would never need a separate graphics package again. This does however mean that I need to be able to draw the graph exactly the way I want it to look! I have searched the web and help files extensively, but

Re: [R] Plotting Time against Date for time series data? (2)

2004-05-17 Thread Prof Brian Ripley
On Mon, 17 May 2004, Sander Oom wrote: Almost but not quite: Someone told me R would produce such high quality graphics, I would never need a separate graphics package again. This does however mean that I need to be able to draw the graph exactly the way I want it to look! I have

Re: [R] Change in how R handles assignments?

2004-05-17 Thread David Kreil
Dear Prof Brian Ripley, Thank you very much for your fast and helpful answer! I have been using the following code in earlier versions of R: What `earlier versions'? As far as I know this was changed in 1.8.0. Yes, that fits my observations. We have an old 1.7.1-beta installation and a

Re: [R] ld: warning ... Max osx

2004-05-17 Thread Thomas Lumley
On Mon, 17 May 2004, Ingmar Visser wrote: Hi All, When installing a package using C++/Fortran routines I get a large number of ld warnings: Yes, you do. They are harmless. -thomas ld: warning multiple definitions of symbol _adler32 /Library/Frameworks/R.framework/R(adler32.o)

Re: [R] Change in how R handles assignments?

2004-05-17 Thread Prof Brian Ripley
On Mon, 17 May 2004, David Kreil wrote: Dear Prof Brian Ripley, Thank you very much for your fast and helpful answer! I have been using the following code in earlier versions of R: What `earlier versions'? As far as I know this was changed in 1.8.0. Yes, that fits my

Re: [R] Change in how R handles assignments?

2004-05-17 Thread David Kreil
Dear Prof Brian Ripley, Thank you very much for the fast and helpful explanation! We'll get 1.9.1 as soon as it's out. With many thanks again, David Kreil. Dr David Philip Kreil (`-''-/).___..--''`-._

[R] Bioconductor 1.4 released

2004-05-17 Thread A.J. Rossini
Greetings! The Bioconductor core group would like to announce the 5th release of Bioconductor, version 1.4. There are many new packages as well as several major upgrades and fixes in older packages, and users are encouraged to upgrade existing tools and check out the new packages. Release

[R] How do you force runif to return non-duplicate results eg runif(0, 1, n=10)? thanks

2004-05-17 Thread Briggs, Meredith M
__ [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

Re: [R] How do you force runif to return non-duplicate results eg runif(0, 1, n=10)? thanks

2004-05-17 Thread Prof Brian Ripley
On Tue, 18 May 2004, Briggs, Meredith M wrote: nothing runif by definition samples independently from U(0,1). So by defnition the results are not duplicated. It is possible due to finite computer representations that you would get duplicates to computer accuracy but the chance of that in

Re: [R] R vs Matlab: which is more programmer friendly?

2004-05-17 Thread Bob Cain
Gabor Grothendieck wrote: Also, there is a document on the R site that provides a translation between Octave and R that might give you some insight into your questions: http://cran.r-project.org/doc/contrib/R-and-octave-2.txt Drool. If someone could do that from Matlab to R, I'd be outta there

Re: [R] ghost image in .eps file

2004-05-17 Thread Prof Brian Ripley
I can't see this in your examples: which viewer did you use? I do see it in phantom.ps. However, looking at resources.bygt.eps, the file is corrupt with a load of bytes after %%EOF starting with nulls and then some postscript. So I don't think this is an R problem but an OS problem.