[R] xyplot: legend title + legend on 1 line

2006-12-15 Thread RMan54
Does anybody know how in xyplot to put the legend title on one line with the legend? I can get the legend on one line with columns=... but the title is always on top. I tried a custom key with key=... and text=... but I can't put the title text in front of the plotting symbol. I am looking for

[R] xyplot: logarithmic y-axis

2006-12-15 Thread RMan54
This should be simple but I am struggling. I like to easily switch in xyplot between a linear or logarithmic y-axis by setting a logical flag logY to False or True. This switch changes the scales argument of xyplot. I found out that the original two-dimentional data (Conc vs Time in my case) are

Re: [R] xyplot: logarithmic y-axis

2006-12-15 Thread RMan54
wrote: On 12/15/06, RMan54 [EMAIL PROTECTED] wrote: This should be simple but I am struggling. I like to easily switch in xyplot between a linear or logarithmic y-axis by setting a logical flag logY to False or True. This switch changes the scales argument of xyplot. I found out

Re: [R] xyplot: logarithmic y-axis

2006-12-15 Thread RMan54
(...) panel.curve(myCurve, from=0, to=96, n=300, ..., log=logY) }, logY ) Deepayan Sarkar wrote: On 12/15/06, RMan54 [EMAIL PROTECTED] wrote: Please take no offence since none was intended. What I meant is that it should be simple for me to know how to do

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

2006-12-14 Thread RMan54
) } ) Deepayan Sarkar wrote: On 12/13/06, RMan54 [EMAIL PROTECTED] wrote: I have a number of x, y observations (Time, Conc) for a number of Subjects (with subject number Subj) and Doses. I can plot the individual points with xyplot fine: xyplot(Conc ~ Time | Subj, Groups=Dose

[R] Reverse order of grouping factor in grouppedData

2006-12-13 Thread RMan54
I created the following groupedData object (nlme library): gd - groupedData(Conc ~ Time | Subj, order.groups=T, FUN = myf, data=mydata) The idea of the myf function is to reverse the order of the grouping factor Subj (or better, reorder from largest to smallest). In the mydata data

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

2006-12-13 Thread RMan54
I have a number of x, y observations (Time, Conc) for a number of Subjects (with subject number Subj) and Doses. I can plot the individual points with xyplot fine: xyplot(Conc ~ Time | Subj, Groups=Dose, data=myData, panel = function(x,y) {

[R] Numbers with correct significant digits

2006-11-17 Thread RMan54
This, for example: v - c(9.6996, 99.99) formatC(v, digits=3, format=g) shows: 9.7 100 This is scientifically incorrect for the first number in the sense that I like to show all 3 significant digits, including trailing zero's. Is there a way that the first number would show as 9.70? By

Re: [R] Numbers with correct significant digits

2006-11-17 Thread RMan54
as follows: v - c(9.6996, 99.99) formatC(v, digits=3, format=g, flag=#) result: 9.70 100. The only small annoyance is that the decimal point is always shown. RMan54 wrote: This, for example: v - c(9.6996, 99.99) formatC(v, digits=3, format=g) shows: 9.7 100

Re: [R] Numbers with correct significant digits

2006-11-17 Thread RMan54
On Fri, Nov 17, 2006 at 02:14:58PM -0800, RMan54 wrote: This, for example: v - c(9.6996, 99.99) formatC(v, digits=3, format=g) shows: 9.7 100 This is scientifically incorrect for the first number in the sense that I like to show all 3 significant digits, including trailing zero's

[R] Plot title with numeric variables

2006-11-14 Thread RMan54
I am trying to create a plot title in R with substitution by a numeric variable (Figure number N) within the text which is bold and has a subcripted part as well. Here is what I have: title - expression(bold(paste(Figure , N, : Plot , C[max], versus CrCL))) plot(1, main=) # Simple plot for

Re: [R] Plot title with numeric variables

2006-11-14 Thread RMan54
to be combined in the same main loop. The need for the subscript for which a PlotMath function is needed causes this problem. -- Rene Braeckman, PhD (RMan54) Irvine, CA RMan54 wrote: I am trying to create a plot title in R with substitution by a numeric variable (Figure