Re: [R] barchart (lattice) with text labels

2007-02-25 Thread Mark Lyman
Deepayan Sarkar wrote: On 2/24/07, Mark and Heather Lyman [EMAIL PROTECTED] wrote: I would like to place the value for each bar in barchart (lattice) at the top of each bar. Something like the following code produces. library(lattice) mypanelfunc - function(x, y, ...) {

[R] Bold Substring in mtext (newbie question)

2007-02-25 Thread Joseph Retzer
Hi everyone, I suspect this is an easy task however I've not been able to accomplish it. I'd like to create an mtext title which has certain words bold, the rest not bold. So far I've been able to create one which is all bold, one which is all not bold and one which has bold and not bold

[R] mtext bold font problem

2007-02-25 Thread Joseph Retzer
Hi everyone, I suspect this is an easy task however I've not been able to accomplish it. I'd like to create an mtext title which has certain words bold, the rest not bold. So far I've been able to create one which is all bold, one which is all not bold and one which has bold and not bold

[R] rpart with overdispersed count data?

2007-02-25 Thread David Farrar
I would like to do recursive partitioning when the response is a count variable subject to overdispersion, using say negative binomial likelihood or something like quasipoisson in glm. Would appreciate any thoughts on how to go about this (theory/computation). If I understand the rpart

Re: [R] Random Integers

2007-02-25 Thread Paul Smith
Is there an R function to generate random integers? Thanks in advance. For example, if you want 5 random integers from the sequence 1:50, you can do the following: sample(1:50,5) Paul __ R-help@stat.math.ethz.ch mailing list

Re: [R] Random Integers

2007-02-25 Thread Andy Fugard
On 25 Feb 2007, at 06:51, Anup Nandialath wrote: Is there an R function to generate random integers? Thanks in advance. The package Random does what you want, but requires a net connection. http://cran.r-project.org/src/contrib/Descriptions/random.html This package provides an

Re: [R] Random Integers

2007-02-25 Thread Charles Annis, P.E.
Sure. rpois(n, lambda) ... will do it. But you should tell us something about how you want your numbers to be distributed, since rpois() produces integers having a Poisson distribution. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265

[R] Double-banger function names: preferences and suggestions

2007-02-25 Thread hadley wickham
What do you prefer/recommend for double-banger function names: 1 scale.colour 2 scale_colour 3 scaleColour 1 is more R-like, but conflicts with S3. 2 is a modern version of number 1, but not many packages use it. Number 3 is more java-like. (I like number 2 best) Any suggestions? Thanks,

Re: [R] Double-banger function names: preferences and suggestions

2007-02-25 Thread Frank E Harrell Jr
hadley wickham wrote: What do you prefer/recommend for double-banger function names: 1 scale.colour 2 scale_colour 3 scaleColour 1 is more R-like, but conflicts with S3. 2 is a modern version of number 1, but not many packages use it. Number 3 is more java-like. (I like number 2

Re: [R] Bold Substring in mtext (newbie question)

2007-02-25 Thread Gabor Grothendieck
Try this: plot(1) mtext(quote(A ~ bold(bold) ~ word), cex = 1.3) On 2/24/07, Joseph Retzer [EMAIL PROTECTED] wrote: Hi everyone, I suspect this is an easy task however I've not been able to accomplish it. I'd like to create an mtext title which has certain words bold, the rest not bold.

Re: [R] Double-banger function names: preferences and suggestions

2007-02-25 Thread John Kane
--- hadley wickham [EMAIL PROTECTED] wrote: What do you prefer/recommend for double-banger function names: 1 scale.colour 2 scale_colour 3 scaleColour 1 is more R-like, but conflicts with S3. 2 is a modern version of number 1, but not many packages use it. Number 3 is more

Re: [R] Random Integers

2007-02-25 Thread Alberto Vieira Ferreira Monteiro
Charles Annis, P.E. wrote: rpois(n, lambda) ... will do it. But you should tell us something about how you want your numbers to be distributed, since rpois() produces integers having a Poisson distribution. nitpick rpois does not generate random _integers_, it generates random _natural

Re: [R] Double-banger function names: preferences and suggestions

2007-02-25 Thread Gabor Grothendieck
There is a fourth possibility too: 4. `scale colour` I guess my preference is #1, #2, #3 and #4 in that order with #1 best. Even though #1 can conflict with S3 it usually does not and its historically what R used so I usually just stay consistent with historical precedent. #2 is otherwise best

Re: [R] Double-banger function names: preferences and suggestions

2007-02-25 Thread Alberto Vieira Ferreira Monteiro
hadley wickham wrote: What do you prefer/recommend for double-banger function names: 1 scale.colour 2 scale_colour 3 scaleColour 1 is more R-like, but conflicts with S3. 2 is a modern version of number 1, but not many packages use it. Number 3 is more java-like. (I like number 2

Re: [R] Random Integers

2007-02-25 Thread Anup Nandialath
Thanks Andy, Alberto, Charles, Paul and Pierre. I needed to simulate a set of counts to test a poisson regression model. Therefore would the best option be as pointed use rpois(.,.)? Sincerely Anup - [[alternative HTML version deleted]]

[R] rotating labels

2007-02-25 Thread Gitta Lubke
I'd like to rotate x-axis labels to get a diagonal orientation (rather than horizontal or vertical), this would result in an easier read, any ideas? thanks, Gitta __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] Combining Dataframes

2007-02-25 Thread Bert Jacobs
Hi, What is the best way to combine several dataframes (approx a dozen, all having one column) into one? All dataframes have a different rowlength, and do not contain numbers. As this new dataframe should have the length of the dataframe with the most rows, the difference in rows with the other

Re: [R] Double-banger function names: preferences and suggestions

2007-02-25 Thread Marc Schwartz
On Sun, 2007-02-25 at 15:56 +, Alberto Vieira Ferreira Monteiro wrote: hadley wickham wrote: What do you prefer/recommend for double-banger function names: 1 scale.colour 2 scale_colour 3 scaleColour 1 is more R-like, but conflicts with S3. 2 is a modern version of

[R] RFA and nsRFA

2007-02-25 Thread amna khan
Dear Sir There are two packages of regional frequency analysis RFA and nsRFA. Are both give us same results if not then what you will suggest. I am confused about this. Please guid me in this regard AMINA -- AMINA SHAHZADI Department of Statistics GC University Lahore, Pakistan. Email: [EMAIL

[R] nsRFA

2007-02-25 Thread amna khan
Dear Sir I am not understanding the HOMTESTS in package nsRFA. Is vector x is the data from all sites combined combined in one vector? How to assign cod? Your help is really appreciable Regards AMINA -- AMINA SHAHZADI Department of Statistics GC University Lahore, Pakistan. Email: [EMAIL

Re: [R] Combining Dataframes

2007-02-25 Thread Ranjan Maitra
Hi, This question has no connection with the original thread. Please do not post like this since it messes up threads since making searching by thread topics in archives useless. Thank you, Ranjan On Sun, 25 Feb 2007 17:27:25 +0100 Bert Jacobs [EMAIL PROTECTED] wrote: Hi, What is the

[R] RFA

2007-02-25 Thread amna khan
Dear Sir in the following example,is the vector lmom a l-moment ratios vector? What is meant by size = northCascades[,1]? And what are the values in c(0.0104,0.0399,0.0405)? Please help me I am unable to understand these from help manual. Best Regards AMINA data(northCascades) lmom - c(1,

Re: [R] rotating labels

2007-02-25 Thread Chuck Cleland
Gitta Lubke wrote: I'd like to rotate x-axis labels to get a diagonal orientation (rather than horizontal or vertical), this would result in an easier read, any ideas? thanks, Gitta This is FAQ 7.27 http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f

[R] RSPython

2007-02-25 Thread Alberto Vieira Ferreira Monteiro
Any hints on how to make RSPython work? I downloaded and installed it, but I can't use it neither from python nor from R! Alberto Monteiro __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] Overdispersion in a GLM binomial model

2007-02-25 Thread Serguei Kaniovski
Hello, The share of concurring votes (i.e. yes-yes and no-no) in total votes between a pair of voters is a function of their ideological distance (index continuous on [1,2]). I show by other means that the votes typically are highly positively correlated (with an average c=0.6). This is because

Re: [R] help with RMySQL

2007-02-25 Thread Seth Falcon
Ravi S. Shankar [EMAIL PROTECTED] writes: Hi R users, I am using RMySQL to connect to a database in MySQL. I have 3 questions. 1)When I give the following command dbListTables(con) I get the output stack imbalance in .Call, 142 then 143 stack imbalance in -, 140 then

Re: [R] RSPython

2007-02-25 Thread Duncan Temple Lang
Well, we'll need to know in what ways it doesn't work and what operating system you are using, etc. If you want to call R from Python, RPy is probably more straightforward. But RSPython works fine on Unix machines. Not on Windows at this point. D. Alberto Vieira Ferreira Monteiro wrote: Any

Re: [R] Combining Dataframes

2007-02-25 Thread Andy Fugard
Would need more info. Merge could still do the job; you might just have to call it approx a dozen - 1 times! Andy On 25 Feb 2007, at 16:27, Bert Jacobs wrote: Hi, What is the best way to combine several dataframes (approx a dozen, all having one column) into one? All dataframes have

Re: [R] Woolf's test, Odds ratio, stratification

2007-02-25 Thread francogrex
Thanks Mark for taking the time to provide me with a very well detailed reply and explanation. It helps a lot. Regards. -- View this message in context: http://www.nabble.com/Woolf%27s-test%2C-Odds-ratio%2C-stratification-tf3284589.html#a9146699 Sent from the R help mailing list archive at

Re: [R] Writing integers in write.matrix function

2007-02-25 Thread jim holtman
try: cat(sprintf(%d %d %f %f %f %f\n, b[,1], b[,2], b[,3], b[,4], b[,5], b[,6]), file='data.out', sep='') On 2/25/07, Mohsen Jafarikia [EMAIL PROTECTED] wrote: Hello everyone, I am using the following program to get the p-value of some numbers (column 'LR' of the data.dat file). I want to

[R] If you had just one book on R to buy...

2007-02-25 Thread Julien Barnier
Hi, I am starting a new job as a study analyst for a social science research unit. I would really like to use R as my main tool for data manipulation and analysis. So I'd like to ask you, if you had just one book on R to buy (or to keep), which one would it be ? I already bought the Handbook of

[R] Repeated measures logistic regression

2007-02-25 Thread Andy Fugard
Dear all, I'm struggling to find the best (set of?) function(s) to do repeated measures logistic regression on some data from a psychology experiment. An artificial version of the data I've got is as follows. Firstly, each participant filled in a questionnaire, the result of which is a

Re: [R] If you had just one book on R to buy...

2007-02-25 Thread Peter Alspach
Julien This is quite a common question. Within R, try RSiteSearch('one good book for R') and follow the threads .. Peter Alspach -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Barnier Sent: Monday, 26 February 2007 8:51 a.m. To:

Re: [R] RSPython

2007-02-25 Thread Alberto Vieira Ferreira Monteiro
Duncan Temple Lang wrote: Well, we'll need to know in what ways it doesn't work and what operating system you are using, etc. In python: import RS Traceback (most recent call last): File stdin, line 1, in ? ImportError: No module named RS In R: library(RSPython) Erro em

Re: [R] mtext bold font problem

2007-02-25 Thread Michael Kubovy
On Feb 24, 2007, at 6:12 PM, Joseph Retzer wrote: I'd like to create an mtext title which has certain words bold, the rest not bold. x - 1:10 y - x^2 plot(x, y, main = expression(paste( Overall Satisfaction Call, bold( Difference ), vs. Overall Satisfaction Rep., bold(

[R] RPy and the evil underscore

2007-02-25 Thread Alberto Vieira Ferreira Monteiro
I seems like I will join two threads :-) Ok, RPy was installed (in Fedora Core 4, yum -y install rpy), and it is running. However, I have a doubt, and the (meagre) documentation doesn't seem to address it. In python, when I do this: import rpy rpy.r.setwd(/mypath) rpy.r.source(myfile.r)

Re: [R] If you had just one book on R to buy...

2007-02-25 Thread Wensui Liu
I have both handbook and MASS and think MASS is much better. But of course, it also depends on how you want to use R or your previous exposure to R. On 2/25/07, Julien Barnier [EMAIL PROTECTED] wrote: Hi, I am starting a new job as a study analyst for a social science research unit. I would

[R] patient risk score by cox regression

2007-02-25 Thread carol white
Dear All, the patient risk score could be calculated by the weighted linear combination of variables with estimated coefficients (linear.predictors returned by coxph). if the linear predictor is greater than 0, the risk score is high and low in the opposite case. however, I don't find the

Re: [R] RPy and the evil underscore

2007-02-25 Thread Tim Churches
Alberto Vieira Ferreira Monteiro wrote: I seems like I will join two threads :-) Please address RPy-specific questions to the Rpy mailing list, where they will be answered swiftly and without annoyance to everyone else on this general r-help mailing list. Ok, RPy was installed (in Fedora Core

Re: [R] Macros in R

2007-02-25 Thread Gabor Grothendieck
Its a FAQ. http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-turn-a-string-into-a-variable_003f On 2/25/07, Monika Kerekes [EMAIL PROTECTED] wrote: Dear members, I have started to work with R recently and there is one thing which I could not solve so far. I don't know how to define

Re: [R] random uniform sample of points on an ellipsoid (e.g. WG

2007-02-25 Thread Ted Harding
On 25-Feb-07 Ranjan Maitra wrote: My method is for the surface, not for the interior. The constraint d*X/|| \Gamma^{-1/2}X ||ensures the constraint, no? The uniformity is ensured by the density restricted to satisfy the constraint which makes it a constant. Ranjan OK -- I admit that I

[R] nested design in lme, need help with specifying model

2007-02-25 Thread Radka Ptacnikova
Hi, I wonder if anyone can help me with specifying a right model for my analysis. I am a beginner to lme methods and though have spent already many hours studying from various books an on-line helps, I was unfortunately not able to find a solution to my problem on my own. Data structure: I

[R] random uniform sample of points on an ellipsoid (e.g. WG

2007-02-25 Thread Alberto Vieira Ferreira Monteiro
I guess this sample is required for some practical application, say a simulation for something done over the Earth. Then, I also guess that the sample does not have to be _absolutely_ exact, but a reasonable approximation can do it. And the ellipsoid is a rotation ellipsoid. This is my

[R] how to fill between 2 stair plots

2007-02-25 Thread Williams Scott
Hi all, I want to create a simple plot with 2 type='s' lines on it: plot(a, b, type='s') lines(x, y, type='s') I wish to then fill the area between the curves with a colour to accentuate the differences eg col=gray(0.95). I cant seem to come up with a simple method for this. Any pointers in