Re: [R] Unable to run smoother in qplot() or ggplot() - complains about knots

2012-05-31 Thread jtizzle36
I am guessing his data is at fixed time points or something similar. As a cheat you can apply a jitter function to the x values and it should draw... g - ggplot(data, aes(x = jitter(x), y = y,... J -- View this message in context:

Re: [R] Unable to run smoother in qplot() or ggplot() - complains about knots

2009-03-13 Thread Ista Zahn
From: Christopher David Desjardins cddesjard...@gmail.com To: r-help@r-project.org Date: Thu, 12 Mar 2009 17:37:26 -0500 Subject: [R] Unable to run smoother in qplot() or ggplot() - complains about knots I get the following error when I run qplot() qplot(grade, read,data = hhm.long.m,

Re: [R] Unable to run smoother in qplot() or ggplot() - complains about knots

2009-03-13 Thread hadley wickham
On Thu, Mar 12, 2009 at 5:37 PM, Christopher David Desjardins cddesjard...@gmail.com wrote: I get the following error when I run qplot() qplot(grade, read,data = hhm.long.m, geom = c(point, smooth)) Error in smooth.construct.cr.smooth.spec(object, data, knots) :  x has insufficient unique

Re: [R] Unable to run smoother in qplot() or ggplot() - complains about knots

2009-03-13 Thread Christopher David Desjardins
Thanks for the reply. I'll look into this. Chris On Mar 13, 2009, at 8:31 AM, hadley wickham wrote: On Thu, Mar 12, 2009 at 5:37 PM, Christopher David Desjardins cddesjard...@gmail.com wrote: I get the following error when I run qplot() qplot(grade, read,data = hhm.long.m, geom = c(point,

[R] Unable to run smoother in qplot() or ggplot() - complains about knots

2009-03-12 Thread Christopher David Desjardins
I get the following error when I run qplot() qplot(grade, read,data = hhm.long.m, geom = c(point, smooth)) Error in smooth.construct.cr.smooth.spec(object, data, knots) : x has insufficient unique values to support 10 knots: reduce k. I am not sure how to tackle this problem. When I take a