Dear R group, I am trying to plot uisng a for loop. Here is the script: for (i in unique(cfn$ID)){ plot(cfn$TIME[cfn$ID==i],cfn$DV[cfn$ID==i],pch=16)} I could access only the last plot of the series and cannot go back to see all the plots. I appreciate your help in resolving this issue and also please suggest how I can export the plots as a pdf or other format files for publication purposes. Regards, Ayyappa [[alternative HTML version deleted]]
On Aug 29, 2011, at 6:03 PM, Ayyappa Chaturvedula wrote:> Dear R group, > > I am trying to plot uisng a for loop. Here is the script: > for (i in unique(cfn$ID)){ > plot(cfn$TIME[cfn$ID==i],cfn$DV[cfn$ID==i],pch=16)} > > I could access only the last plot of the series and cannot go back > to see > all the plots. I appreciate your help in resolving this issue and > also > please suggest how I can export the plots as a pdf or other format > files for > publication purposes.?pdf "dev.off -- David Winsemius, MD West Hartford, CT
Dear Group, Can you help me solve the problem with calculating Time Post dose using date time fomat? Here is information for subject 1 and I appreciate your help for code to generate time post dose from the first dose in each individual. Thank you in advance. Regards, Ayyappa ID DATE TIME 1 2/25/2010 14:51 1 2/26/2010 20:26 1 2/27/2010 9:00 1 2/27/2010 21:34 1 2/28/2010 8:18 1 2/28/2010 21:00 1 3/1/2010 9:00 1 3/1/2010 9:20 [[alternative HTML version deleted]]