Re: [R] Plotting just a portion of a smoother graph in ggplot2

2011-08-04 Thread Timothy Bates
It's not immediately obvious You need to look at coord_cartesian() and its ylim argument. Best, t Sent from my iPhone On 4 Aug 2011, at 02:38 PM, Christopher Desjardins wrote: > Hi, > I am using ggplot2 to with the following code: > > gmathk2 <- > qplot(time,math,colour=Kids,data=kids.ach.

[R] Plotting just a portion of a smoother graph in ggplot2

2011-08-04 Thread Christopher Desjardins
Hi, I am using ggplot2 to with the following code: gmathk2 <- qplot(time,math,colour=Kids,data=kids.ach.lm.k5,geom="smooth",method="lm",formula=y~ns(x,1)) + opts(title="Smoother Plot: Math K-5") + xlab("Time") + ylab("Math") + scale_colour_brewer(pal="Set1"); gmathk2 This plots all the smoother f