Re: [R] connecting boxplots

2009-01-13 Thread johnhj
@David Winsemius I have one more question to you... lines(boxplot(count ~ spray, data = InsectSprays, col = "lightgray") $stats[c(1),] ) connects the lines through the values. But how can I connect the values min, max, median at the same time ? The code above make only one line, if I use this

Re: [R] connecting boxplots

2009-01-13 Thread johnhj
Hiii, Thanks to all... Btw.: Is it possible to disable the description of extrem points in boxplots. I mean the points under the whisker's...in the image you can see what I mean... greetings, J http://www.nabble.com/file/p21425697/Test_Delay3_1_2.png Michael A. Miller wrote: > >> joh

Re: [R] connecting boxplots

2009-01-12 Thread Michael A. Miller
> johnhj wrote: > Can you also describe me how to describe the standard > deviation of the boxplots/matrices ? Try tapply: > x <-read.table(file="test.txt") > x$group <- rep(1:8, each=5) > boxplot(V3~gruppe, data=x) with(x, tapply(V3, gruppe, sd)) Mike

Re: [R] connecting boxplots

2009-01-12 Thread David Hajage
Or with package ggplot2 : library(ggplot2) c <- qplot(cyl, mpg, data=mtcars) c + geom_boxplot(aes(group = factor(cyl))) + stat_summary(fun = median, geom = "line", colour = "red") + stat_summary(fun = function(x) min(x), geom = "line", colour = "blue") + stat_summary(fun = function(x) max(

Re: [R] connecting boxplots

2009-01-12 Thread johnhj
Thank you very much David... Can you also describe me how to describe the standard deviation of the boxplots/matrices ? David Winsemius wrote: > > You do not provide a workable example and it appears you may be > conflating the German and English spellings of "group", but perhaps > this

Re: [R] connecting boxplots

2009-01-11 Thread David Winsemius
You do not provide a workable example and it appears you may be conflating the German and English spellings of "group", but perhaps this code fragment using the first example in boxplots help menu will move you along. It results in drawing the connecting lines to the minimum value in each g

Re: [R] connecting boxplots

2009-01-11 Thread johnhj
In other words: I will connect the median, min and the max area of the boxplot with a line. The function lines() could help me, but I don't know which parameters the lines() function should have. johnhj wrote: > > Hii, > > I created some boxplots with this commands: > > x <-read.table

[R] connecting boxplots

2009-01-11 Thread johnhj
Hii, I created some boxplots with this commands: x <-read.table(file="test.txt") x$group <- rep(1:8, each=5) boxplot(V3~gruppe, data=x) Now, I will connect the boxplots to each other to the min, max and median values. Can anybody help me how to do it ? greetings, J -- View this message in