[R] labelling barplot

2004-11-27 Thread Ross Clement
Hi. I'd like to produce a barplot where only the lowest value and the highest value are labelled on the x-axis. E.g. I might have a list of numbers and frequencies: barplot( c( 2, 2, 0, 4, 2 ), names.arg=c( 1, 2, 3, 4, 5 ) ) where the data is a set of counts for some values between 1 and 5.

Re: [R] sorting a data.frame using a vector

2004-11-27 Thread Peter Dalgaard
Liaw, Andy [EMAIL PROTECTED] writes: But I'm not happy with it because it is not really efficient. Any other suggestions are welcome! Anything wrong with x[y,] ??? Well... sometimes: nm - as.character(sample(1:1e5)) x - data.frame(x1=rnorm(1e5), row.names=1:1e5)

Re: [R] help with glmmPQL

2004-11-27 Thread Douglas Bates
John Fox wrote: Dear Doug, I assume that in the absence of a suitable anova() method, there's nothing wrong with testing the difference between two GLMM objects nested in their random effects by manually comparing the log-likelihoods as printed or returned by logLik(). Is that correct? Regards,

[R] I will be on vacation

2004-11-27 Thread partha
Sir: Is it possible to stop sending me email till January 12,2005. I will be away from my workplace. Partha __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] labelling barplot

2004-11-27 Thread Marc Schwartz
On Sat, 2004-11-27 at 08:59 +, Ross Clement wrote: Hi. I'd like to produce a barplot where only the lowest value and the highest value are labelled on the x-axis. E.g. I might have a list of numbers and frequencies: barplot( c( 2, 2, 0, 4, 2 ), names.arg=c( 1, 2, 3, 4, 5 ) ) where

Re: [R] R-2.0.1 reinstall non-CRAN pkg

2004-11-27 Thread Uwe Ligges
Anthony Westerling wrote: Yes. It is looking the correct directory. Note that the package is installed without errors. The problem is that, even after being newly reinstalled, it is still not recognized as a valid package for R-2.0 Tony On Nov 26, 2004, at 9:08 PM, Liaw, Andy wrote: Have

[R] inappropriate posting (.. vacation ..)

2004-11-27 Thread Martin Maechler
Huuh ??? Partha == [EMAIL PROTECTED] on Sat, 27 Nov 2004 09:44:41 -0500 writes: Partha Sir: Is it possible to stop sending me email till Partha January 12,2005. I will be away from my workplace. Partha Partha What did you think when sending this to the 2500 readers of

Re: [R] Storing loop output from a function

2004-11-27 Thread Uwe Ligges
Andrew Kniss wrote: I am attempting to write an R function to aid in time series diagnostics. The tsdiag() works well, but I would prefer to get a plot with ACF, PACF, and Ljung-Box p-values of residuals. In my attempt to get to that point, I am writing a function to calculate Ljung-Box p-values

Re: [R] Multi-figure plotting

2004-11-27 Thread Uwe Ligges
Stefaan Lhermitte wrote: Dear R-ians, I have a question concerning plotting different plots on one figure. I have written a script to plot an image, a legend (based on different rectangles) and a timeseries plot on one figure. In my R-lagnuage it looks like this (without arguments that are not

Re: [R] conditional replacement - readLines

2004-11-27 Thread Uwe Ligges
Christian Schulz wrote: Hi, i have list with 2575 cgi files which i have read with readLines - all Lines have the type chr. Now i want replace the 2. line with a condition in 4. line and write the files back to dir. How i could avoid the incompatible problem, or is it better doing something

RE: [R] Storing loop output from a function

2004-11-27 Thread Liaw, Andy
From: Uwe Ligges Andrew Kniss wrote: I am attempting to write an R function to aid in time series diagnostics. The tsdiag() works well, but I would prefer to get a plot with ACF, PACF, and Ljung-Box p-values of residuals. In my attempt to get to that point, I am writing a

[R] how to pause between plots running scripts?

2004-11-27 Thread Terry Mu
I used pause() from library(DAAG) to pasue between plots. This works when I source a script, but seems don't work when I run (ctrl + R) the script in R. Did I do something wrong? Thanks. __ [EMAIL PROTECTED] mailing list

RE: [R] an R function to search on Prof. Baron's site

2004-11-27 Thread Liaw, Andy
Thanks to Tom and Andy for pointing this out and chasing it down. I tried replacing | by %7C and that seems to fix the problem (at least on a somewhat outdated release of Firefox). Please let me know if the following works. With regard to Gabor's comment: I'd guess R-core would be reluctant to

Re: [R] inappropriate posting (.. vacation ..)

2004-11-27 Thread Adaikalavan Ramasamy
In appropriate yes, but at least responders will not be getting as many out of office replies. I am replying for future reference. Go to https://stat.ethz.ch/mailman/listinfo/r-help and enter your email address on the unsubscribe or edit options button (the last textbox). You can also get the

Re: [R] how to pause between plots running scripts?

2004-11-27 Thread Marc Schwartz
On Sat, 2004-11-27 at 11:42 -0500, Terry Mu wrote: I used pause() from library(DAAG) to pasue between plots. This works when I source a script, but seems don't work when I run (ctrl + R) the script in R. Did I do something wrong? Thanks. The standard way to pause between plots is to set

Re: [R] R-2.0.1 reinstall non-CRAN pkg

2004-11-27 Thread Anthony Westerling
Thank you Uwe That was indeed the problem. I revised the depends line and removed the old built line, and then rebuilt the package. Now it is recognized as valid. Thanks Tony On Nov 27, 2004, at 7:54 AM, Uwe Ligges wrote: Anthony Westerling wrote: Yes. It is looking the correct directory.

Re: [R] 2GB dataset

2004-11-27 Thread Ernesto Jardim
Hi, I've been using large datasets (GB) and I've stored them in MySQL databases and use RMySQL to access them. My feeling is that most of the times you don't need to keep the dataset in your workspace, but you need to access parts of it or aggregate it in some way, before run some analysis. So

RE: [R] Testing for S4 objects

2004-11-27 Thread John Fox
Dear Martin, As it turns out, the test that I proposed (i.e., testing for NULL slotNames) sometimes fails. For example: library(car) data(Prestige) sum - summary(lm(prestige ~ income + education, data=Prestige)) slotNames(sum) character(0) The following, however, seems to work (at least as

[R] R program for row-column designs!

2004-11-27 Thread Xianggui QU
Does anybody have an R program to generate row-column designs and to produce the incidence matrices? I would appreciate if you could share it with me! Thank you! Harvey. - [[alternative HTML version deleted]]

Re: [R] how to pause between plots running scripts?

2004-11-27 Thread Terry Mu
Thank you. I am using R 2.0.0 under Windows 2000. I've tried 1. par(ask=T) 2. readline(prompt = Pause. Press Enter to continue...) 1. script: x - 0:20 y - 5:25 plot(y) plot(x) plot(y~x) output: par()$ask [1] TRUE x - 0:20 y - 5:25 plot(y) Hit Return to see next plot: plot(x) R does not

Re: [R] how to pause between plots running scripts?

2004-11-27 Thread Duncan Murdoch
I used pause() from library(DAAG) to pasue between plots. This works when I source a script, but seems don't work when I run (ctrl + R) the script in R. This sounds like a bug to me, but I'm not sure it's going to be an easy one to fix. Duncan Murdoch

[R] lm help: using lm when one point is known (not y intercept)

2004-11-27 Thread Seth Imhoff
Hello- My question is a short one. How can I specify a single point which through the fitted linear model has to go through? To illustrate my problem, the fit to following data must go through the point (-37.25(effect), 50(prob)). Note: you can ignore the label column. Effect Prob

[R] How can I generate a random network with given cluster coefficient using R?

2004-11-27 Thread Wuming Gong
Hi list, I have read the mannual of package graph, but it looks that three functions randomEGraph, randomGraph and randomNodeGraph cannot generate a random network with given cluster coefficient. Is there any exisiting R package for such kind job and if no, how can I perform this job with

RE: [R] lm help: using lm when one point is known (not y intercept)

2004-11-27 Thread John Fox
Dear Seth, You don't say which variable is the explanatory variable and which is the response, but assuming that prob is to be regressed on effect, you can fit lm(prob - 50 ~ I(effect + 37.25) - 1). That is you can shift the point through which the regression is to go to the origin and then force

[R] How can I generate a random network with given cluster coefficient using R?

2004-11-27 Thread Wuming Gong
Hi list, I have read the mannual of package graph, but it looks that three functions randomEGraph, randomGraph and randomNodeGraph cannot generate a random network with given cluster coefficient. Is there any exisiting R package for such kind job and if no, how can I perform this job with