[R] Minor Tick Marks in Lattice

2007-02-21 Thread Rene Braeckman
I have a couple if issues with the code below. 1. as.Table=TRUE has no effect 2. the minor tick marks on top of the top panels are drawn in the strips and not on the axes. Any ideas what's wrong? There are probably better ways to add minor tick marks... Thanks for any help. Rene

[R] Different gridlines per panel in xyplot

2007-02-20 Thread Rene Braeckman
In the example R script below, horizontal gray gridlines are drawn at y coordinates where the points are drawn with the code: panel.abline(h=y, v=xScale, col.line=gray) How do I change this so that the horizontal gray gridlines are drawn at y coordinates where the y labels are drawn? The

Re: [R] Different gridlines per panel in xyplot

2007-02-20 Thread Rene Braeckman
[mailto:[EMAIL PROTECTED] Sent: Tuesday, February 20, 2007 9:44 PM To: Rene Braeckman; r-help@stat.math.ethz.ch Subject: Re: [R] Different gridlines per panel in xyplot Am 20 Feb 2007 um 20:52 hat Rene Braeckman geschrieben: From: Rene Braeckman [EMAIL PROTECTED

Re: [R] Different gridlines per panel in xyplot

2007-02-20 Thread Rene Braeckman
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rene Braeckman Sent: Tuesday, February 20, 2007 8:52 PM To: r-help@stat.math.ethz.ch Subject: [R] Different gridlines per panel in xyplot In the example R script below, horizontal gray gridlines are drawn at y coordinates where the points

[R] How to avoid sort of x values in dotplot?

2007-02-19 Thread Rene Braeckman
I am trying to avoid that dotplot sorts my x-values. They are in the correct order in the data.frame and the connections between the x-y values follows this order, but the placement of the x-values on the x-axis is re-ordered. In the following example, the order should be d1, d8 and d15. However,

[R] Problem in summaryBy

2007-02-15 Thread Rene Braeckman
The R script below gives values of 1 for all minimum values when I use a custom function in summaryBy. I get the correct values when I use FUN=min directly. Any help is much appreciated. The continuous information provided in this forum is fabulous as are the different R packages available. Rene

Re: [R] Problem in summaryBy

2007-02-15 Thread Rene Braeckman
AM To: Rene Braeckman Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Problem in summaryBy On 2/15/2007 1:34 PM, Rene Braeckman wrote: The R script below gives values of 1 for all minimum values when I use a custom function in summaryBy. I get the correct values when I use FUN=min directly. Any

[R] How to re-arrange data in table?

2007-02-15 Thread Rene Braeckman
I like to re-arrange a table (sTable) based on the value of one the rows (Analyte) as shown below. Blocks of data with different values for Analyte need to be stacked below each other. Any easy way to do this or any advice where to look? Since it may be possible to get this in an earlier stage

Re: [R] How to re-arrange data in table?

2007-02-15 Thread Rene Braeckman
other code can do it. Rene -Original Message- From: hadley wickham [mailto:[EMAIL PROTECTED] Sent: Thursday, February 15, 2007 11:56 AM To: Rene Braeckman Cc: r-help@stat.math.ethz.ch Subject: Re: [R] How to re-arrange data in table? I like to re-arrange a table (sTable) based

Re: [R] How to re-arrange data in table?

2007-02-15 Thread Rene Braeckman
the cast and get the same results in the file? Or convert the array into a table? Thanks again for all your help, Rene Irvine, California, USA -Original Message- From: hadley wickham [mailto:[EMAIL PROTECTED] Sent: Thursday, February 15, 2007 12:46 PM To: Rene Braeckman Cc: r-help

Re: [R] How to re-arrange data in table?

2007-02-15 Thread Rene Braeckman
, row.names=FALSE, col.names=TRUE, qmethod=double, append=TRUE) } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rene Braeckman Sent: Thursday, February 15, 2007 1:59 PM To: 'hadley wickham' Cc: r-help@stat.math.ethz.ch Subject: Re: [R] How to re-arrange data

Re: [R] legend in lattice densityplot [Broadcast]

2007-02-14 Thread Rene Braeckman
I use key= instead. Much more flexible. I set the parameters in trellis.par.set for the plot and then take these settings in key to get them in the legend. space= is part of the key= settings. As in this (to stick with your example): library(lattice) lg - c(alfa,beta,gamma) a - rep(lg, 200) b -

Re: [R] get.hist.quote problem yahoo

2007-02-09 Thread Rene Braeckman
I had the same problem some time ago. Below is a function that I picked up on the web somewhere (can't remember where; may have been a newsletter). It's based on the tseries function but the difference is that this function produces a data frame with a column containing the dates of the quotes,

[R] Reference to dataframe and contents

2007-02-04 Thread Rene Braeckman
and discussions on this forum are the best. Rene - Rene Braeckman, PhD Clinical Pharmacology Pharmacometrics Irvine, California, USA __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] plot

2006-12-18 Thread Rene Braeckman
You can do something like this for a scatter plot: x - c(a,b,c) y - c(1,2,3) xnum - rep(1:length(x)) plot(x=xnum, y=y, xlab=x, xaxt=n) axis(side=1, at=xnum, labels=x) This fakes a numerical axis and suppresses the y-axis labels that you then draw with the axis function the way that you want

Re: [R] Random Effects Model

2006-12-18 Thread Rene Braeckman
If these are the only variables, you are missing Type. Swim and Type are both conditioning variables that you need to provide. Maybe your intention is to use Sex instead of Type. Try: ?xyplot And look under x as the 1st argument for xyplot. Rene -Original Message- From: [EMAIL

Re: [R] xyplot: discrete points + continuous curve per panel

2006-12-14 Thread Rene Braeckman
I will give this a try. However, this is based on row and columns of the panels and not on the SUBJ and DOSE information that I need to calculate the continuous curve. Rene -Original Message- From: Petr Pikal [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 1:18 AM To:

Re: [R] Plot title with numeric variables

2006-11-14 Thread Rene Braeckman
Thanks for your quick response. This works but the problem is that I can't define the title ahead before N is defined or changed. The idea is that the title is defined ahead, passed to a function that makes many plots, and N is incremented for each plot. One way to accomplish this would be to

Re: [R] Plot title with numeric variables

2006-11-14 Thread Rene Braeckman
cat doesn't work with bquoted arguments. At least not with the simple cat(xxx, ccc). Rene _ From: Jeffrey Robert Spies [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 1:58 PM To: Rene Braeckman Cc: r-help Subject: Re: [R] Plot title with numeric variables How about using