Re: [R] regression line on boxplots

2011-04-01 Thread Bernd Weiss
Am 01.04.2011 11:24, schrieb Yan Jiao: Dear R users, I'm trying to add a regression line on my boxplots (something like:boxplot(c(1:3),c(4:6),c(5:8))) But I can't see it. Please help !!! It's not a April fool's joke!!! Your sample data does not make any sense (at least to me). I would do it a

Re: [R] regression line on boxplots

2011-04-01 Thread David Winsemius
On Apr 1, 2011, at 11:24 AM, Yan Jiao wrote: boxplot(c(1:3),c(4:6),c(5:8)) df <- structure(list(grp = c(1, 1, 1, 2, 2, 2, 3, 3, 3, 3), val = c(1L, 2L, 3L, 4L, 5L, 6L, 5L, 6L, 7L, 8L)), .Names = c("grp", "val"), row.names = c(NA, -10L), class = "data.frame") boxplot(val~grp,data=df)

[R] regression line on boxplots

2011-04-01 Thread Yan Jiao
Dear R users, I'm trying to add a regression line on my boxplots (something like:boxplot(c(1:3),c(4:6),c(5:8))) But I can't see it. Please help !!! It's not a April fool's joke!!! Yan [[alternative HTML version deleted]] __ R-help@r-project.o