Re: [R] print median and sd...

2009-03-14 Thread Jim Lemon
johnhj wrote: Hii Jholtman, I will make a graph of the median values and not to print to the console. I tried to plot with: plot(V3 ~ grup, data = median) ?? but I get an error message. I also tried to print the output of median<-with(x, tapply(V3, grup, median)) to a text file with the X a

Re: [R] print median and sd...

2009-03-13 Thread johnhj
Ok, sorry... here is my code so far... x <-read.table(file="D:/output.txt") x$grup <- 25*rep(1:144, each=5) median<-with(x, tapply(V3, grup, median)) sd<-with(x, tapply(V3, grup, sd)) I will plot to types of graph. One graph with the median values for example with the "plot()" function,

Re: [R] print median and sd...

2009-03-13 Thread jim holtman
Can you provide a reproducible example with the data so that we understand what you are working with. Need to see what the structure of 'x' and 'median' are. On Fri, Mar 13, 2009 at 8:35 AM, johnhj wrote: > > Hii Jholtman, > > I will make a graph of the median values and not to print to the cons

Re: [R] print median and sd...

2009-03-13 Thread johnhj
Hii Jholtman, I will make a graph of the median values and not to print to the console. I tried to plot with: plot(V3 ~ grup, data = median) ?? but I get an error message. I also tried to print the output of median<-with(x, tapply(V3, grup, median)) to a text file with the X and Y Koordinates

Re: [R] print median and sd...

2009-03-13 Thread jim holtman
Where do you want to print it? Is it the console (if so, try 'print(median)') or if it is the plot, use 'text' with the appropriate parameters. It would help if you listed the " I tried many things but without success..." and what you were expecting vs. what you got. Reproducible code would be use