[R] lattice legend colors recycling sooner than expected

2005-12-09 Thread alejandro munoz
dear r-helpers, it seems the colors in an automatically generated lattice legend recycle after the 8th color, even when the user has set e.g. superpose.symbol$col to be longer than 8. the following example will illustrate what i mean: z <- data.frame(x=rep(letters[1:15], each=4), y=rnorm(60),

Re: [R] merge list entries

2005-08-23 Thread alejandro munoz
that works beautifully. thank you, jim! alejandro __ R-help@stat.math.ethz.ch 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] merge list entries

2005-08-23 Thread alejandro munoz
dear expeRts, i would like to merge the data frame entries in a list. for example: > #input > myl <- list(q1=data.frame(id=c("Alice", "Bob"), grade=c(90, 49)), q2=data.frame(id=c("Alice", "Chuck"), grade=c(70, 93)), q3=data.frame(id=c("Bob", "Chuck"), grade=c(84, 40)))

Re: [R] normal reference intervals

2005-07-22 Thread alejandro munoz
David, At the following URI you will find an R package called lmsqreg that implements LMS quantile regression: http://www.biostat.harvard.edu/~carey/vcwww_4.html HTH, alejandro On 7/21/05, Crabb, David <[EMAIL PROTECTED]> wrote: > I am interested in calculating Age-Specific normal reverence in

Re: [R] not supressing leading zeros when reading a table?

2005-07-10 Thread alejandro munoz
Adrian, To prevent coercion to numeric, try: mydata <- read.table("myfile", colClasses="character") HTH. alejandro On 7/10/05, Adrian Dusa <[EMAIL PROTECTED]> wrote: > Dear R list, > > I have a dataset with a column which should be read as character, like this: > > name surname answer > 1 x

Re: [R] Generating correlated data from uniform distribution

2005-07-01 Thread alejandro munoz
Dear Menghui, You may consider looking in Luc Devroye's "Non-uniform Random Number Generation". Despite its title, section XI.3.2 describes how to generate bivariate uniforms. The book is out of print but Devroye himself urges you to print it from his scanned PDFs(!): http://cgm.cs.mcgill.ca/~luc

[R] reason for na.last=TRUE in rank

2005-05-19 Thread Alejandro Munoz del Rio
Dear UseRs, Could someone explain to me why the default behaviour of rank() is to assign the largest rank to missing data > rank(c(3, 1, NA)) [1] 2 1 3 as opposed to what I would hazard would be the expected 2, 1, NA? Despite consistency being the hobgoblin of little minds, of two closely rela

[R] subset of documentation for a given recommended package

2004-05-23 Thread Alejandro Munoz del Rio
Dear R-help readers, In R 1.8.1 it was easy to print the documentation for recommended packages: go to the full reference manual (refman.pdf) and print the relevant pages, which were contiguous. With R 1.9.0 some of those packages (e.g. "ts") have become part of the "stats" package, and hence thei

Re: [R] assigning colors to barplot when beside=TRUE

2003-12-04 Thread Alejandro Munoz Del Rio
Quoting Paul Murrell <[EMAIL PROTECTED]>: > I haven't figured out exactly what your code is supposed to produce, but > I suspect that you are calculating colv incorrectly. In your example, > you get a colv with 5 elements. There are a total of 10 bars plotted > (some are zero height because th

[R] assigning colors to barplot when beside=TRUE

2003-12-04 Thread Alejandro Munoz Del Rio
dear list, i am having trouble coloring the bars in a barplot. my data have two groups, which i would like to plot side by side. within each group i want to sort the observations in decreasing order, like a pareto chart. the bar colors would relfect the value of a third variable. below i have gen

[R] avoiding excel's odbc limit on number of columns

2003-03-12 Thread Alejandro Munoz del Rio
Dear R-Helpers, I would like to read an Excel .xls file via RODBC. I have successfully run the example in p. 18 of "R Data Import/Export". The problem I am facing is that Excel's ODBC driver seems to have a limit on the number of fields/columns (output below). I haven't found any documentation on

[R] plotting and unplotting lines in R

2003-01-13 Thread Alejandro Munoz del Rio
"RexBryan" <[EMAIL PROTECTED]> writes: > I would like to plot and unplot a line to a graph using R's line > command.This would allow for sequentially trying different plotted > functions for a visual fit. Is there a way to do this? you can try re-plotting the line you want to erase in the col