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(x), geom = "line", colour =
"green")
2009/1/11 johnhj <jharris@web.de>
>
> 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 context:
> http://www.nabble.com/connecting-boxplots-tp21405459p21405459.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]