Re: [R] Overlay boxplot and scatter.smooth line

2013-11-20 Thread jlh.membership
mean_cl_normal", aes(x=factor(x),y=y), size=1.2, color="red") ggp will overlay mean and 95% CL (assuming normal distribution of error) at each level of x. -Original Message- From: Johannes Radinger [mailto:johannesradin...@gmail.com] Sent: Tuesday, November 19, 2013 10:01

Re: [R] Overlay boxplot and scatter.smooth line

2013-11-19 Thread David Winsemius
On Nov 19, 2013, at 2:43 AM, Johannes Radinger wrote: > Hi, > > I'd like to plot a boxplot and use a scatter.smooth line plot as an overlay > for this plot. > This works except for the problem that the x-axis ticks for both plots are > differently spaced: > The boxplot ticks are closer and the s

Re: [R] Overlay boxplot and scatter.smooth line

2013-11-19 Thread Johannes Radinger
Thanks...that works great! /J On Tue, Nov 19, 2013 at 2:39 PM, Adams, Jean wrote: > Use lines() with loess.smooth() instead of scatter.smooth() to add to the > already existing boxplot. For example, > > boxplot(y~x) > lines(loess.smooth(x, y)) > > Jean > > > On Tue, Nov 19, 2013 at 4:43 AM, J

Re: [R] Overlay boxplot and scatter.smooth line

2013-11-19 Thread Adams, Jean
Use lines() with loess.smooth() instead of scatter.smooth() to add to the already existing boxplot. For example, boxplot(y~x) lines(loess.smooth(x, y)) Jean On Tue, Nov 19, 2013 at 4:43 AM, Johannes Radinger < johannesradin...@gmail.com> wrote: > Hi, > > I'd like to plot a boxplot and use a s