[R] help to extract data with R

2011-10-30 Thread Zheng Lu
With the following dataset, trl =1, 2,3, how to extract data with the time repeated 3 times. For example, I am only interested in the data records with time repeated 3 times. time=0.1 only has 1 time, we don't want it, time=0.3 only has two times, we don't want it, and so on. Thanks a lot.

Re: [R] How to plot survival data from multiple trials (simulations)?

2011-10-29 Thread Zheng Lu
-Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Zheng Lu > Sent: Friday, October 28, 2011 10:30 PM > To: r-help@r-project.org > Subject: [R] How to plot survival data from multiple trials (simulations)? > > > &g

[R] How to plot survival data from multiple trials (simulations)?

2011-10-28 Thread Zheng Lu
Dear all: Could anyone please provide some R codes to plot the below survival data to compare two groups (0 vs 1) after 2 simulations (TRL)? need 95% prediction interval on the plot from these 2 trials. I would like to simulate 1000 trials later. Thanks a lot for your great help and consid

[R] help for color parameter

2008-09-04 Thread Zheng Lu
Dear all: I attached the dataset with this email and post codes as below. My questions is related to the 'col=temp.col' for the line and pch in my code, I have 4 IDs, 10 DIDs and each ID include different DIDs, for example, first ID has 3 DIDs, then the color is the first three colors(bla

[R] issues with gap.plot function

2008-07-26 Thread Zheng Lu
Dear all: I have the following codes: Xdata<-c(2,3,8,9,10) Ydata<-1:5 gap.plot(Xdata, Ydata,gap=c(5,6),gap.axis="x",type="o") However, the type='o' seems only work on the first part of gap plot, the second half of the plot always just points, you can not add lines on that part, any help

[R] help appreciated to make a plot

2008-07-02 Thread Zheng Lu
Dear All: I have the following data: 0 100 0.5 79.9605 0.75 84.7098 1.5 72.1793 2.5 97.4924 4.5

[R] help for high-quality plot again

2007-09-17 Thread Zheng Lu
Word using Word's built in graphic editor so you could change > the labels, etc. even after you have imported it. Right click the graphic > in R and save or copy it as a metafile. > > On 9/16/07, Zheng Lu <[EMAIL PROTECTED]> wrote: >> Dear all: >> >> I a

Re: [R] help for high-quality plot

2007-09-16 Thread Zheng Lu
Dear all: I am curious how to generate high-quality plot and graph with R and input it into my word document. my plot was always generated in device 2, when I save it as PNG, the quality is poor. Thank you very much for your consideration and time. ZLu ___

[R] Looking for instructions for several questions with R

2007-09-13 Thread Zheng Lu
Dear all: when I add legend into the upper right concer of the plot region, it always has a square region in which the text is, how to get rid of that square region, I just want pure text. For the log-scale on y axis, they appear as 1e-02, 1e+00 and 1e+02, how to change to 0.01, 1, 100. how t

Re: [R] help with unit indication when plotting

2007-09-13 Thread Zheng Lu
"mu" for micro, as in > plot(1:10, ylab = expression(paste(mu, "M"))) > > On Thu, 13 Sep 2007, Zheng Lu wrote: > >> Dear all: >> >> Is there any one could tell me how I can represent Micro-molar as an >> unit of concentration when I plot wit

[R] help with unit indication when plotting

2007-09-13 Thread Zheng Lu
Dear all: Is there any one could tell me how I can represent Micro-molar as an unit of concentration when I plot with R(S-plus), I don't want write 'uM' from keyboard, I am thinking to write it like in word, in word, people insert symbol for 'u' for uM. Am I clear? Thank you very much for your