Re: [R] drawing a plot with SEM

2009-04-22 Thread David Winsemius
I realized after looking again that you asked for plotting. Since you only have two points per row, it would be more honest statistically to plot the values rather than mean and sem. > dm <-read.table(textConnection(" repeat1repeat2 + 13034 + 212

Re: [R] drawing a plot with SEM

2009-04-22 Thread David Winsemius
Assume the object in question is a dataframe named "dm": apply(dm, 1, mean) It worries me that you are asking for the sem's of two element objects, but if you really want it, the obvious modification to the above should work. On Apr 22, 2009, at 10:26 AM, ANJAN PURKAYASTHA wrote: I have

[R] drawing a plot with SEM

2009-04-22 Thread ANJAN PURKAYASTHA
I have a data matrix: repeat1repeat2 13034 21223 3 50 13 4 5698 . . . I would like to plot for the mean and standard error of mean of repeat 1 and repeat2 for each row. Any pointers on how to do this in R? T